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.c | 5 * pkix_pl_ldaprequest.c |
6 * | 6 * |
7 */ | 7 */ |
8 | 8 |
9 #include "pkix_pl_ldaprequest.h" | 9 #include "pkix_pl_ldaprequest.h" |
10 | 10 |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 486 |
487 PKIX_RETURN(LDAPREQUEST); | 487 PKIX_RETURN(LDAPREQUEST); |
488 } | 488 } |
489 | 489 |
490 /* --Public-Functions------------------------------------------------------- */ | 490 /* --Public-Functions------------------------------------------------------- */ |
491 | 491 |
492 /* | 492 /* |
493 * FUNCTION: pkix_pl_LdapRequest_Create | 493 * FUNCTION: pkix_pl_LdapRequest_Create |
494 * DESCRIPTION: | 494 * DESCRIPTION: |
495 * | 495 * |
496 * This function creates an LdapRequest using the PRArenaPool pointed to by | 496 * This function creates an LdapRequest using the PLArenaPool pointed to by |
497 * "arena", a message number whose value is "msgnum", a base object pointed to | 497 * "arena", a message number whose value is "msgnum", a base object pointed to |
498 * by "issuerDN", a scope whose value is "scope", a derefAliases flag whose | 498 * by "issuerDN", a scope whose value is "scope", a derefAliases flag whose |
499 * value is "derefAliases", a sizeLimit whose value is "sizeLimit", a timeLimit | 499 * value is "derefAliases", a sizeLimit whose value is "sizeLimit", a timeLimit |
500 * whose value is "timeLimit", an attrsOnly flag whose value is "attrsOnly", a | 500 * whose value is "timeLimit", an attrsOnly flag whose value is "attrsOnly", a |
501 * filter whose value is "filter", and attribute bits whose value is | 501 * filter whose value is "filter", and attribute bits whose value is |
502 * "attrBits"; storing the result at "pRequestMsg". | 502 * "attrBits"; storing the result at "pRequestMsg". |
503 * | 503 * |
504 * See pkix_pl_ldaptemplates.c (and below) for the ASN.1 representation of | 504 * See pkix_pl_ldaptemplates.c (and below) for the ASN.1 representation of |
505 * message components, and see pkix_pl_ldapt.h for data types. | 505 * message components, and see pkix_pl_ldapt.h for data types. |
506 * | 506 * |
507 * PARAMETERS | 507 * PARAMETERS |
508 * "arena" | 508 * "arena" |
509 * The address of the PRArenaPool to be used in the encoding. Must be | 509 * The address of the PLArenaPool to be used in the encoding. Must be |
510 * non-NULL. | 510 * non-NULL. |
511 * "msgnum" | 511 * "msgnum" |
512 * The UInt32 message number to be used for the messageID component of the | 512 * The UInt32 message number to be used for the messageID component of the |
513 * LDAP message exchange. | 513 * LDAP message exchange. |
514 * "issuerDN" | 514 * "issuerDN" |
515 * The address of the string to be used for the baseObject component of the | 515 * The address of the string to be used for the baseObject component of the |
516 * LDAP SearchRequest message. Must be non-NULL. | 516 * LDAP SearchRequest message. Must be non-NULL. |
517 * "scope" | 517 * "scope" |
518 * The (enumerated) ScopeType to be used for the scope component of the | 518 * The (enumerated) ScopeType to be used for the scope component of the |
519 * LDAP SearchRequest message | 519 * LDAP SearchRequest message |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 * -- text name of the attribute, or dotted | 608 * -- text name of the attribute, or dotted |
609 * -- OID representation | 609 * -- OID representation |
610 * | 610 * |
611 * LDAPDN ::= LDAPString | 611 * LDAPDN ::= LDAPString |
612 * | 612 * |
613 * LDAPString ::= OCTET STRING | 613 * LDAPString ::= OCTET STRING |
614 * | 614 * |
615 */ | 615 */ |
616 PKIX_Error * | 616 PKIX_Error * |
617 pkix_pl_LdapRequest_Create( | 617 pkix_pl_LdapRequest_Create( |
618 PRArenaPool *arena, | 618 PLArenaPool *arena, |
619 PKIX_UInt32 msgnum, | 619 PKIX_UInt32 msgnum, |
620 char *issuerDN, | 620 char *issuerDN, |
621 ScopeType scope, | 621 ScopeType scope, |
622 DerefType derefAliases, | 622 DerefType derefAliases, |
623 PKIX_UInt32 sizeLimit, | 623 PKIX_UInt32 sizeLimit, |
624 PKIX_UInt32 timeLimit, | 624 PKIX_UInt32 timeLimit, |
625 char attrsOnly, | 625 char attrsOnly, |
626 LDAPFilter *filter, | 626 LDAPFilter *filter, |
627 LdapAttrMask attrBits, | 627 LdapAttrMask attrBits, |
628 PKIX_PL_LdapRequest **pRequestMsg, | 628 PKIX_PL_LdapRequest **pRequestMsg, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 SECItem **pRequestBuf, | 752 SECItem **pRequestBuf, |
753 void *plContext) | 753 void *plContext) |
754 { | 754 { |
755 PKIX_ENTER(LDAPREQUEST, "pkix_pl_LdapRequest_GetEncoded"); | 755 PKIX_ENTER(LDAPREQUEST, "pkix_pl_LdapRequest_GetEncoded"); |
756 PKIX_NULLCHECK_TWO(request, pRequestBuf); | 756 PKIX_NULLCHECK_TWO(request, pRequestBuf); |
757 | 757 |
758 *pRequestBuf = request->encoded; | 758 *pRequestBuf = request->encoded; |
759 | 759 |
760 PKIX_RETURN(LDAPREQUEST); | 760 PKIX_RETURN(LDAPREQUEST); |
761 } | 761 } |
OLD | NEW |