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_ldaprequest.h andre@0: * andre@0: * LdapRequest Object Definitions andre@0: * andre@0: */ andre@0: andre@0: #ifndef _PKIX_PL_LDAPREQUEST_H andre@0: #define _PKIX_PL_LDAPREQUEST_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: typedef enum { andre@0: USER_CERT, andre@0: CA_CERT, andre@0: CROSS_CERT, andre@0: CRL, andre@0: ARL, andre@0: DELTA_CRL andre@0: } PKIX_PL_LdapAttr; andre@0: andre@0: struct PKIX_PL_LdapRequestStruct{ andre@0: PLArenaPool *arena; andre@0: PKIX_UInt32 msgnum; andre@0: char *issuerDN; andre@0: ScopeType scope; andre@0: DerefType derefAliases; andre@0: PKIX_UInt32 sizeLimit; andre@0: PKIX_UInt32 timeLimit; andre@0: char attrsOnly; andre@0: LDAPFilter *filter; andre@0: LdapAttrMask attrBits; andre@0: SECItem attributes[MAX_LDAPATTRS]; andre@0: SECItem **attrArray; andre@0: SECItem *encoded; andre@0: }; andre@0: andre@0: /* see source file for function documentation */ andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapRequest_Create( andre@0: PLArenaPool *arena, andre@0: PKIX_UInt32 msgnum, andre@0: char *issuerDN, andre@0: ScopeType scope, andre@0: DerefType derefAliases, andre@0: PKIX_UInt32 sizeLimit, andre@0: PKIX_UInt32 timeLimit, andre@0: char attrsOnly, andre@0: LDAPFilter *filter, andre@0: LdapAttrMask attrBits, andre@0: PKIX_PL_LdapRequest **pRequestMsg, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapRequest_AttrTypeToBit( andre@0: SECItem *attrType, andre@0: LdapAttrMask *pAttrBit, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapRequest_AttrStringToBit( andre@0: char *attrString, andre@0: LdapAttrMask *pAttrBit, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_LdapRequest_GetEncoded( andre@0: PKIX_PL_LdapRequest *request, andre@0: SECItem **pRequestBuf, andre@0: void *plContext); andre@0: andre@0: PKIX_Error *pkix_pl_LdapRequest_RegisterSelf(void *plContext); andre@0: andre@0: #ifdef __cplusplus andre@0: } andre@0: #endif andre@0: andre@0: #endif /* _PKIX_PL_LDAPREQUEST_H */