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_ldapresponse.h | 5 * pkix_pl_ldapresponse.h |
6 * | 6 * |
7 * LdapResponse Object Definitions | 7 * LdapResponse Object Definitions |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
11 #ifndef _PKIX_PL_LDAPRESPONSE_H | 11 #ifndef _PKIX_PL_LDAPRESPONSE_H |
12 #define _PKIX_PL_LDAPRESPONSE_H | 12 #define _PKIX_PL_LDAPRESPONSE_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 struct PKIX_PL_LdapResponseStruct{ | 20 struct PKIX_PL_LdapResponseStruct { |
21 LDAPMessage decoded; | 21 LDAPMessage decoded; |
22 PKIX_UInt32 partialLength; | 22 PKIX_UInt32 partialLength; |
23 PKIX_UInt32 totalLength; | 23 PKIX_UInt32 totalLength; |
24 SECItem derEncoded; | 24 SECItem derEncoded; |
25 }; | 25 }; |
26 | 26 |
27 /* see source file for function documentation */ | 27 /* see source file for function documentation */ |
28 | 28 |
29 PKIX_Error * | 29 PKIX_Error *pkix_pl_LdapResponse_Create( |
30 pkix_pl_LdapResponse_Create( | 30 LDAPMessageType responseType, PKIX_UInt32 totalLength, |
31 LDAPMessageType responseType, | 31 PKIX_UInt32 bytesAvailable, void *partialData, PKIX_UInt32 *pBytesConsumed, |
32 PKIX_UInt32 totalLength, | 32 PKIX_PL_LdapResponse **pResponse, void *plContext); |
33 PKIX_UInt32 bytesAvailable, | |
34 void *partialData, | |
35 PKIX_UInt32 *pBytesConsumed, | |
36 PKIX_PL_LdapResponse **pResponse, | |
37 void *plContext); | |
38 | 33 |
39 PKIX_Error * | 34 PKIX_Error *pkix_pl_LdapResponse_Append(PKIX_PL_LdapResponse *response, |
40 pkix_pl_LdapResponse_Append( | 35 PKIX_UInt32 partialLength, |
41 PKIX_PL_LdapResponse *response, | 36 void *partialData, |
42 PKIX_UInt32 partialLength, | 37 PKIX_UInt32 *bytesConsumed, |
43 void *partialData, | 38 void *plContext); |
44 PKIX_UInt32 *bytesConsumed, | |
45 void *plContext); | |
46 | 39 |
47 PKIX_Error * | 40 PKIX_Error *pkix_pl_LdapResponse_IsComplete(PKIX_PL_LdapResponse *response, |
48 pkix_pl_LdapResponse_IsComplete( | 41 PKIX_Boolean *pIsComplete, |
49 PKIX_PL_LdapResponse *response, | 42 void *plContext); |
50 PKIX_Boolean *pIsComplete, | |
51 void *plContext); | |
52 | 43 |
53 PKIX_Error * | 44 PKIX_Error *pkix_pl_LdapResponse_Decode(PLArenaPool *arena, |
54 pkix_pl_LdapResponse_Decode( | 45 PKIX_PL_LdapResponse *response, |
55 PLArenaPool *arena, | 46 SECStatus *pStatus, void *plContext); |
56 PKIX_PL_LdapResponse *response, | |
57 SECStatus *pStatus, | |
58 void *plContext); | |
59 | 47 |
60 PKIX_Error * | 48 PKIX_Error *pkix_pl_LdapResponse_GetMessage(PKIX_PL_LdapResponse *response, |
61 pkix_pl_LdapResponse_GetMessage( | 49 LDAPMessage **pMessage, |
62 PKIX_PL_LdapResponse *response, | 50 void *plContext); |
63 LDAPMessage **pMessage, | |
64 void *plContext); | |
65 | 51 |
66 PKIX_Error * | 52 PKIX_Error *pkix_pl_LdapResponse_GetMessageType(PKIX_PL_LdapResponse *response, |
67 pkix_pl_LdapResponse_GetMessageType( | 53 LDAPMessageType *pMessageType, |
68 PKIX_PL_LdapResponse *response, | 54 void *plContext); |
69 LDAPMessageType *pMessageType, | |
70 void *plContext); | |
71 | 55 |
72 PKIX_Error * | 56 PKIX_Error *pkix_pl_LdapResponse_GetCapacity(PKIX_PL_LdapResponse *response, |
73 pkix_pl_LdapResponse_GetCapacity( | 57 PKIX_UInt32 *pCapacity, |
74 PKIX_PL_LdapResponse *response, | 58 void *plContext); |
75 PKIX_UInt32 *pCapacity, | |
76 void *plContext); | |
77 | 59 |
78 PKIX_Error * | 60 PKIX_Error *pkix_pl_LdapResponse_GetResultCode(PKIX_PL_LdapResponse *response, |
79 pkix_pl_LdapResponse_GetResultCode( | 61 LDAPResultCode *pResultCode, |
80 PKIX_PL_LdapResponse *response, | 62 void *plContext); |
81 LDAPResultCode *pResultCode, | |
82 void *plContext); | |
83 | 63 |
84 PKIX_Error * | 64 PKIX_Error *pkix_pl_LdapResponse_GetAttributes( |
85 pkix_pl_LdapResponse_GetAttributes( | 65 PKIX_PL_LdapResponse *response, LDAPSearchResponseAttr ***pAttributes, |
86 PKIX_PL_LdapResponse *response, | 66 void *plContext); |
87 LDAPSearchResponseAttr ***pAttributes, | |
88 void *plContext); | |
89 | 67 |
90 PKIX_Error *pkix_pl_LdapResponse_RegisterSelf(void *plContext); | 68 PKIX_Error *pkix_pl_LdapResponse_RegisterSelf(void *plContext); |
91 | 69 |
92 #ifdef __cplusplus | 70 #ifdef __cplusplus |
93 } | 71 } |
94 #endif | 72 #endif |
95 | 73 |
96 #endif /* _PKIX_PL_LDAPRESPONSE_H */ | 74 #endif /* _PKIX_PL_LDAPRESPONSE_H */ |
OLD | NEW |