OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* | 4 /* |
5 * pkix_pl_ldaprequest.h | 5 * pkix_pl_ldaprequest.h |
6 * | 6 * |
7 * LdapRequest Object Definitions | 7 * LdapRequest Object Definitions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
11 #ifndef _PKIX_PL_LDAPREQUEST_H | 11 #ifndef _PKIX_PL_LDAPREQUEST_H |
12 #define _PKIX_PL_LDAPREQUEST_H | 12 #define _PKIX_PL_LDAPREQUEST_H |
13 | 13 |
14 #include "pkix_pl_common.h" | 14 #include "pkix_pl_common.h" |
15 | 15 |
16 #ifdef __cplusplus | 16 #ifdef __cplusplus |
17 extern "C" { | 17 extern "C" { |
18 #endif | 18 #endif |
19 | 19 |
20 typedef enum { | 20 typedef enum { |
21 USER_CERT, | 21 USER_CERT, |
22 CA_CERT, | 22 CA_CERT, |
23 CROSS_CERT, | 23 CROSS_CERT, |
24 CRL, | 24 CRL, |
25 ARL, | 25 ARL, |
26 DELTA_CRL | 26 DELTA_CRL |
27 } PKIX_PL_LdapAttr; | 27 } PKIX_PL_LdapAttr; |
28 | 28 |
29 struct PKIX_PL_LdapRequestStruct{ | 29 struct PKIX_PL_LdapRequestStruct{ |
30 PRArenaPool *arena; | 30 PLArenaPool *arena; |
31 PKIX_UInt32 msgnum; | 31 PKIX_UInt32 msgnum; |
32 char *issuerDN; | 32 char *issuerDN; |
33 ScopeType scope; | 33 ScopeType scope; |
34 DerefType derefAliases; | 34 DerefType derefAliases; |
35 PKIX_UInt32 sizeLimit; | 35 PKIX_UInt32 sizeLimit; |
36 PKIX_UInt32 timeLimit; | 36 PKIX_UInt32 timeLimit; |
37 char attrsOnly; | 37 char attrsOnly; |
38 LDAPFilter *filter; | 38 LDAPFilter *filter; |
39 LdapAttrMask attrBits; | 39 LdapAttrMask attrBits; |
40 SECItem attributes[MAX_LDAPATTRS]; | 40 SECItem attributes[MAX_LDAPATTRS]; |
41 SECItem **attrArray; | 41 SECItem **attrArray; |
42 SECItem *encoded; | 42 SECItem *encoded; |
43 }; | 43 }; |
44 | 44 |
45 /* see source file for function documentation */ | 45 /* see source file for function documentation */ |
46 | 46 |
47 PKIX_Error * | 47 PKIX_Error * |
48 pkix_pl_LdapRequest_Create( | 48 pkix_pl_LdapRequest_Create( |
49 PRArenaPool *arena, | 49 PLArenaPool *arena, |
50 PKIX_UInt32 msgnum, | 50 PKIX_UInt32 msgnum, |
51 char *issuerDN, | 51 char *issuerDN, |
52 ScopeType scope, | 52 ScopeType scope, |
53 DerefType derefAliases, | 53 DerefType derefAliases, |
54 PKIX_UInt32 sizeLimit, | 54 PKIX_UInt32 sizeLimit, |
55 PKIX_UInt32 timeLimit, | 55 PKIX_UInt32 timeLimit, |
56 char attrsOnly, | 56 char attrsOnly, |
57 LDAPFilter *filter, | 57 LDAPFilter *filter, |
58 LdapAttrMask attrBits, | 58 LdapAttrMask attrBits, |
59 PKIX_PL_LdapRequest **pRequestMsg, | 59 PKIX_PL_LdapRequest **pRequestMsg, |
(...skipping 17 matching lines...) Expand all Loading... |
77 SECItem **pRequestBuf, | 77 SECItem **pRequestBuf, |
78 void *plContext); | 78 void *plContext); |
79 | 79 |
80 PKIX_Error *pkix_pl_LdapRequest_RegisterSelf(void *plContext); | 80 PKIX_Error *pkix_pl_LdapRequest_RegisterSelf(void *plContext); |
81 | 81 |
82 #ifdef __cplusplus | 82 #ifdef __cplusplus |
83 } | 83 } |
84 #endif | 84 #endif |
85 | 85 |
86 #endif /* _PKIX_PL_LDAPREQUEST_H */ | 86 #endif /* _PKIX_PL_LDAPREQUEST_H */ |
OLD | NEW |