1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: XcapHttpConsts |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XCAPHTTPCONSTS__ |
|
22 #define __XCAPHTTPCONSTS__ |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 const TInt KXcapHashLength = 32; |
|
27 const TInt KXcapRawHashLength = 16; |
|
28 |
|
29 _LIT8( KAuthHeaderParamEnd, "," ); |
|
30 _LIT8( KAuthHeaderParamEndQ, "\"," ); |
|
31 _LIT8( KAuthHeaderParamQuote, "\"" ); |
|
32 _LIT8( KAuthHeaderStart, "Digest username=\"" ); |
|
33 _LIT8( KAuthHeaderRealm, "realm=\"" ); |
|
34 _LIT8( KAuthHeaderNonce, "nonce=\"" ); |
|
35 _LIT8( KAuthHeaderUri, "uri=\"" ); |
|
36 _LIT8( KAuthHeaderResponse, "response=\"" ); |
|
37 _LIT8( KAuthHeaderCNonce, "cnonce=\"" ); |
|
38 _LIT8( KAuthHeaderOpaque, "opaque=\"" ); |
|
39 _LIT8( KAuthHeaderNonceCount, "nc=" ); |
|
40 _LIT8( KAuthHeaderQop, "qop=" ); |
|
41 |
|
42 const TText8* const KAuthInfoParamArray[] = |
|
43 { |
|
44 _S8( "Authentication-Info" ), |
|
45 _S8( "Proxy-Authentication-Info" ), |
|
46 _S8( "nextnonce" ), |
|
47 _S8( "rspauth" ), |
|
48 _S8( "cnonce" ), |
|
49 _S8( "nc" ), |
|
50 _S8( "qop" ), |
|
51 }; |
|
52 |
|
53 enum TAuthInfoParam |
|
54 { |
|
55 ENfoAuthInfo = 0, |
|
56 ENfoPrxAuthInfo, |
|
57 ENfoNextnonce, |
|
58 ENfoRspauth, |
|
59 ENfoCnonce, |
|
60 ENfoNc, |
|
61 ENfoQop, |
|
62 }; |
|
63 enum TXcapAuthQop |
|
64 { |
|
65 EXcapAuth = 0, |
|
66 EXcapAuthInt, |
|
67 EXcapAuthNone |
|
68 }; |
|
69 |
|
70 #endif //__XCAPHTTPCONSTS__ |
|
71 |
|
72 // End of File |
|