andre@0: /* This Source Code Form is subject to the terms of the Mozilla Public andre@0: * License, v. 2.0. If a copy of the MPL was not distributed with this andre@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ andre@0: /* andre@0: * pkix_pl_ldapresponse.h andre@0: * andre@0: * LdapResponse Object Definitions andre@0: * andre@0: */ andre@0: andre@0: #ifndef _PKIX_PL_LDAPRESPONSE_H andre@0: #define _PKIX_PL_LDAPRESPONSE_H andre@0: andre@0: #include "pkix_pl_common.h" andre@0: andre@0: #ifdef __cplusplus andre@0: extern "C" { andre@0: #endif andre@0: andre@0: struct PKIX_PL_LdapResponseStruct{ andre@0: LDAPMessage decoded; andre@0: PKIX_UInt32 partialLength; andre@0: PKIX_UInt32 totalLength; andre@0: SECItem derEncoded; andre@0: }; andre@0: andre@0: /* see source file for function documentation */ andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_Create( andre@0: LDAPMessageType responseType, andre@0: PKIX_UInt32 totalLength, andre@0: PKIX_UInt32 bytesAvailable, andre@0: void *partialData, andre@0: PKIX_UInt32 *pBytesConsumed, andre@0: PKIX_PL_LdapResponse **pResponse, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_Append( andre@0: PKIX_PL_LdapResponse *response, andre@0: PKIX_UInt32 partialLength, andre@0: void *partialData, andre@0: PKIX_UInt32 *bytesConsumed, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_IsComplete( andre@0: PKIX_PL_LdapResponse *response, andre@0: PKIX_Boolean *pIsComplete, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_Decode( andre@0: PLArenaPool *arena, andre@0: PKIX_PL_LdapResponse *response, andre@0: SECStatus *pStatus, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_GetMessage( andre@0: PKIX_PL_LdapResponse *response, andre@0: LDAPMessage **pMessage, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_GetMessageType( andre@0: PKIX_PL_LdapResponse *response, andre@0: LDAPMessageType *pMessageType, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_GetCapacity( andre@0: PKIX_PL_LdapResponse *response, andre@0: PKIX_UInt32 *pCapacity, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_GetResultCode( andre@0: PKIX_PL_LdapResponse *response, andre@0: LDAPResultCode *pResultCode, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapResponse_GetAttributes( andre@0: PKIX_PL_LdapResponse *response, andre@0: LDAPSearchResponseAttr ***pAttributes, andre@0: void *plContext); andre@0: andre@0: PKIX_Error *pkix_pl_LdapResponse_RegisterSelf(void *plContext); andre@0: andre@0: #ifdef __cplusplus andre@0: } andre@0: #endif andre@0: andre@0: #endif /* _PKIX_PL_LDAPRESPONSE_H */