equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
449 err = KSecParserErrMode; |
449 err = KSecParserErrMode; |
450 } |
450 } |
451 else if (token.CompareF(_L("IKE_VERSION:"))==0) //CompareF ignores case |
451 else if (token.CompareF(_L("IKE_VERSION:"))==0) //CompareF ignores case |
452 { |
452 { |
453 sub_num = NextToken(); |
453 sub_num = NextToken(); |
454 sub_num.Val(aConf->iIkeVersion, EDecimal); |
454 if ( sub_num.Val(aConf->iIkeVersion, EDecimal) != KErrNone ) |
455 if ( aConf->iIkeVersion != 2 ) |
455 { |
|
456 err = KSecParserErrUnknown; |
|
457 } |
|
458 else if ( aConf->iIkeVersion != 2 ) |
456 aConf->iIkeVersion = 1; // IKE version 1 is currently the default |
459 aConf->iIkeVersion = 1; // IKE version 1 is currently the default |
457 } |
460 } |
458 else if (token.CompareF(_L("SEND_NOTIFICATION:"))==0) //CompareF ignores case |
461 else if (token.CompareF(_L("SEND_NOTIFICATION:"))==0) //CompareF ignores case |
459 { |
462 { |
460 token.Set(NextToken()); |
463 token.Set(NextToken()); |