Commit | Line | Data |
---|---|---|
bac41a7b A |
1 | /* |
2 | * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved. | |
3 | * | |
4 | * The contents of this file constitute Original Code as defined in and are | |
5 | * subject to the Apple Public Source License Version 1.2 (the 'License'). | |
6 | * You may not use this file except in compliance with the License. Please obtain | |
7 | * a copy of the License at http://www.apple.com/publicsource and read it before | |
8 | * using this file. | |
9 | * | |
10 | * This Original Code and all software distributed under the License are | |
11 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS | |
12 | * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT | |
13 | * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | |
14 | * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the | |
15 | * specific language governing rights and limitations under the License. | |
16 | */ | |
17 | ||
18 | ||
19 | // | |
20 | // netparameters - ParameterSource keys for network protocol parameters | |
21 | // | |
22 | #ifndef _H_NETPARAMETERS | |
23 | #define _H_NETPARAMETERS | |
24 | ||
25 | #include "parameters.h" | |
26 | ||
27 | ||
28 | namespace Security { | |
29 | namespace Network { | |
30 | ||
31 | ||
32 | enum { | |
33 | // generic (potentially applies to all protocols) | |
34 | kNetworkGenericUsername = PARAMKEY(0x00001,string), // username for simple auth | |
35 | kNetworkGenericPassword = PARAMKEY(0x00002,string), // password for simple auths | |
36 | kNetworkRestartPosition = PARAMKEY(0x00003,integer), // byte position to restart from | |
37 | ||
38 | // generic but for proxy use only (all proxy protocols) | |
39 | kNetworkGenericProxyUsername = PARAMKEY(0x00100,string), // username for proxy | |
40 | kNetworkGenericProxyPassword = PARAMKEY(0x00101,string), // password for proxy | |
41 | ||
42 | // FTP protocol specific | |
43 | kNetworkFtpPassiveTransfers = PARAMKEY(0x01001,bool), // use passive mode transfers | |
44 | kNetworkFtpTransferMode = PARAMKEY(0x01002,string), // transfer mode ("A" or "I") | |
45 | kNetworkFtpUniqueStores = PARAMKEY(0x01003,bool), // request unique stores (STOU) | |
46 | ||
47 | // HTTP/HTTPS protocol specific | |
48 | kNetworkHttpCommand = PARAMKEY(0x02001,string), // access command (GET et al.) | |
49 | kNetworkHttpUserAgent = PARAMKEY(0x02002,string), // User-Agent: value | |
50 | kNetworkHttpMoreHeaders = PARAMKEY(0x02003,string), // arbitrary more headers | |
51 | kNetworkHttpAcceptExpiredCerts = PARAMKEY(0x02004,bool), // accept expired certs | |
52 | kNetworkHttpAcceptUnknownRoots = PARAMKEY(0x02005,bool), // accept untrusted root certificates | |
53 | ||
54 | // Legacy interface use ONLY. Not valid for modern use | |
55 | kNetworkLegacyIsSecure = PARAMKEY(0x100001,bool), // secure connection (SSL) | |
56 | kNetworkLegacyRespHeader = PARAMKEY(0x100002,string), // collected response headers | |
57 | kNetworkLegacyReqBody = PARAMKEY(0x100003,data), // request body (in memory, as string) | |
58 | ||
59 | kNetworkLegacyResourceSize = PARAMKEY(0x100004,integer), | |
60 | kNetworkLegacyFileType = PARAMKEY(0x100005,integer), | |
61 | kNetworkLegacyFileCreator = PARAMKEY(0x100006,integer), | |
62 | kNetworkLegacyLastModifiedTime = PARAMKEY(0x100007,integer), | |
63 | kNetworkLegacyMIMEType = PARAMKEY(0x100008,string), | |
64 | kNetworkLegacyResourceName = PARAMKEY(0x100009,string), | |
65 | ||
66 | // @@@ mistakenly added -- to be removed | |
67 | kNetworkGenericURL = PARAMKEY(0x00004,string), | |
68 | kNetworkGenericHost = PARAMKEY(0x00005,string) | |
69 | }; | |
70 | ||
71 | ||
72 | } // end namespace Security | |
73 | } // end namespace Network | |
74 | ||
75 | #endif //_H_UAPARAMETERS |