tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pkix_pl_ldapresponse.h (2324B)


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