Home
last modified time | relevance | path

Searched refs:BerElement (Results 1 – 25 of 61) sorted by relevance

123

/illumos-gate/usr/src/head/
H A Dlber.h91 typedef struct berelement BerElement; typedef
94 #define NULLBER ((BerElement *)NULL)
144 ber_tag_t LDAP_CALL ber_get_tag(BerElement *ber);
145 ber_tag_t LDAP_CALL ber_skip_tag(BerElement *ber,
147 ber_tag_t LDAP_CALL ber_peek_tag(BerElement *ber,
149 ber_tag_t LDAP_CALL ber_get_int(BerElement *ber, ber_int_t *num);
150 ber_tag_t LDAP_CALL ber_get_stringb(BerElement *ber, char *buf,
152 ber_tag_t LDAP_CALL ber_get_stringa(BerElement *ber,
154 ber_tag_t LDAP_CALL ber_get_stringal(BerElement *ber,
156 ber_tag_t ber_get_bitstringa(BerElement *ber,
[all …]
/illumos-gate/usr/src/lib/libkmf/ber_der/inc/
H A Dber_der.h82 typedef struct berelement BerElement; typedef
92 BerElement *kmfder_init(const struct berval *bv);
93 BerElement *kmfber_init(const struct berval *bv);
96 int kmfber_put_len(BerElement *, ber_int_t, int);
101 ber_tag_t kmfber_first_element(BerElement *, ber_len_t *, char **);
102 ber_tag_t kmfber_next_element(BerElement *, ber_len_t *, char *);
103 ber_tag_t kmfber_scanf(BerElement *, const char *, ...);
112 extern int kmfber_printf(BerElement *, const char *, ...);
113 extern int kmfber_flatten(BerElement *, struct berval **);
114 extern int kmfber_realloc(BerElement *, ber_len_t);
[all …]
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Dio.c50 kmfber_read(BerElement *ber, char *buf, ber_len_t len) in kmfber_read()
70 kmfber_realloc(BerElement *ber, ber_len_t len) in kmfber_realloc()
137 kmfber_write(BerElement *ber, char *buf, ber_len_t len, int nosos) in kmfber_write()
160 kmfber_free(BerElement *ber, int freebuf) in kmfber_free()
171 BerElement *
174 BerElement *ber; in kmfber_alloc_t()
176 if ((ber = (BerElement*)calloc(1, in kmfber_alloc_t()
192 BerElement *
198 BerElement *
204 BerElement *
[all …]
H A Dencode.c70 ber_put_tag(BerElement *ber, ber_tag_t tag, int nosos) in ber_put_tag()
111 kmfber_put_len(BerElement *ber, ber_int_t len, int nosos) in kmfber_put_len()
159 ber_put_int_or_enum(BerElement *ber, ber_int_t num, ber_tag_t tag) in ber_put_int_or_enum()
210 kmfber_put_enum(BerElement *ber, ber_int_t num, ber_tag_t tag) in kmfber_put_enum()
219 ber_put_int(BerElement *ber, ber_int_t num, ber_tag_t tag) in ber_put_int()
228 ber_put_oid(BerElement *ber, struct berval *oid, ber_tag_t tag) in ber_put_oid()
251 ber_put_big_int(BerElement *ber, ber_tag_t tag, char *data, in ber_put_big_int()
288 kmfber_put_ostring(BerElement *ber, char *str, ber_len_t len, in kmfber_put_ostring()
338 kmfber_put_string(BerElement *ber, char *str, ber_tag_t tag) in kmfber_put_string()
344 kmfber_put_bitstring(BerElement *ber, char *str, in kmfber_put_bitstring()
[all …]
H A Ddecode.c65 kmfber_get_tag(BerElement *ber) in kmfber_get_tag()
104 kmfber_skip_tag(BerElement *ber, ber_len_t *len) in kmfber_skip_tag()
164 kmfber_peek_tag(BerElement *ber, ber_len_t *len) in kmfber_peek_tag()
166 BerElement bercopy; in kmfber_peek_tag()
174 ber_getnint(BerElement *ber, ber_int_t *num, ber_slen_t len) in ber_getnint()
209 kmfber_get_int(BerElement *ber, ber_int_t *num) in kmfber_get_int()
228 kmfber_get_stringb(BerElement *ber, char *buf, ber_len_t *len) in kmfber_get_stringb()
275 kmfber_get_stringa(BerElement *ber, char **buf) in kmfber_get_stringa()
297 ber_get_oid(BerElement *ber, struct berval *oid) in ber_get_oid()
319 ber_get_bigint(BerElement *ber, struct berval **bv) in ber_get_bigint()
[all …]
H A Dclasn1.c25 encode_algoid(BerElement *asn1, KMF_X509_ALGORITHM_IDENTIFIER *algoid, in encode_algoid()
202 get_sequence_data(BerElement *asn1, BerValue *seqdata) in get_sequence_data()
247 get_algoid(BerElement *asn1, KMF_X509_ALGORITHM_IDENTIFIER *algoid) in get_algoid()
254 BerElement *oidasn1 = NULL; in get_algoid()
338 encode_spki(BerElement *asn1, KMF_X509_SPKI *spki) in encode_spki()
363 BerElement *asn1; in DerEncodeSPKI()
390 get_spki(BerElement *asn1, KMF_X509_SPKI *spki) in get_spki()
425 BerElement *asn1; in DerEncodeDSASignature()
515 BerElement *asn1 = NULL; in DerDecodeDSASignature()
606 BerElement *asn1; in DerDecodeSPKI()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Dencode.c66 ber_put_tag( BerElement *ber, ber_tag_t tag, int nosos ) in ber_put_tag()
106 ber_put_len( BerElement *ber, ber_len_t len, int nosos ) in ber_put_len()
155 ber_put_int_or_enum( BerElement *ber, ber_int_t num, ber_tag_t tag ) in ber_put_int_or_enum()
208 ber_put_enum( BerElement *ber, ber_int_t num, ber_tag_t tag ) in ber_put_enum()
218 ber_put_int( BerElement *ber, ber_int_t num, ber_tag_t tag ) in ber_put_int()
228 ber_put_ostring( BerElement *ber, char *str, ber_len_t len, in ber_put_ostring()
279 ber_put_string( BerElement *ber, char *str, ber_tag_t tag ) in ber_put_string()
286 ber_put_bitstring( BerElement *ber, char *str, in ber_put_bitstring()
315 ber_put_null( BerElement *ber, ber_tag_t tag ) in ber_put_null()
333 ber_put_boolean( BerElement *ber, int boolval, ber_tag_t tag ) in ber_put_boolean()
[all …]
H A Ddecode.c49 ber_get_tag( BerElement *ber ) in ber_get_tag()
89 ber_skip_tag( BerElement *ber, ber_len_t *len ) in ber_skip_tag()
148 ber_peek_tag( BerElement *ber, ber_len_t *len ) in ber_peek_tag()
150 BerElement bercopy; in ber_peek_tag()
158 ber_getnint( BerElement *ber, ber_int_t *num, ber_slen_t len ) in ber_getnint()
194 ber_get_int( BerElement *ber, ber_int_t *num ) in ber_get_int()
214 ber_get_stringb( BerElement *ber, char *buf, ber_len_t *len ) in ber_get_stringb()
261 ber_get_stringa( BerElement *ber, char **buf ) in ber_get_stringa()
296 ber_get_stringal( BerElement *ber, struct berval **bv ) in ber_get_stringal()
341 ber_get_bitstringa( BerElement *ber, char **buf, ber_len_t *blen ) in ber_get_bitstringa()
[all …]
H A Dio.c210 ber_read( BerElement *ber, char *buf, ber_len_t len ) in ber_read()
230 nslberi_ber_realloc( BerElement *ber, ber_len_t len ) in nslberi_ber_realloc()
297 ber_write( BerElement *ber, char *buf, ber_len_t len, int nosos ) in ber_write()
321 ber_free( BerElement *ber, int freebuf ) in ber_free()
337 ber_flush( Sockbuf *sb, BerElement *ber, int freeit ) in ber_flush()
416 BerElement *
420 BerElement *ber; in ber_alloc_t()
422 if ( (ber = (BerElement*)NSLBERI_CALLOC( 1, in ber_alloc_t()
447 BerElement *
454 BerElement *
[all …]
H A Dlber-int.h149 #define NULLBER ((BerElement *)NULL)
153 void ber_dump( BerElement *ber, int inout );
169 BerElement sb_ber;
251 int nslberi_ber_realloc( BerElement *ber, ber_len_t len );
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dldap-int.h160 BerElement *lm_ber; /* the ber encoded message contents */
183 BerElement *lconn_ber; /* non-NULL if in midst of msg. */
218 BerElement *lr_ber; /* ber encoded request contents */
668 int nsldapi_parse_result( LDAP *ld, int msgtype, BerElement *rber,
701 int nsldapi_parse_reference( LDAP *ld, BerElement *rber, char ***referralsp,
718 char *dn, BerElement *ber );
719 int nsldapi_alloc_ber_with_options( LDAP *ld, BerElement **berp );
720 void nsldapi_set_ber_options( LDAP *ld, BerElement *ber );
721 int nsldapi_ber_flush( LDAP *ld, Sockbuf *sb, BerElement *ber, int freeit,
723 int nsldapi_send_server_request( LDAP *ld, BerElement *ber, int msgid,
[all …]
H A Dsearch.c53 static char *put_complex_filter( BerElement *ber, char *str,
58 static int put_simple_filter( BerElement *ber, char *str );
59 static int put_substring_filter( BerElement *ber, char *type,
61 static int put_filter_list( BerElement *ber, char *str );
165 BerElement *ber; in nsldapi_search()
281 BerElement **berp in nsldapi_build_search_req()
284 BerElement *ber; in nsldapi_build_search_req()
408 BerElement *ber, in put_complex_filter()
444 ldap_put_filter( BerElement *ber, char *str ) in ldap_put_filter()
585 put_filter_list( BerElement *ber, char *str ) in put_filter_list()
[all …]
H A Dgetattr.c45 bytes_remaining( BerElement *ber ) in bytes_remaining()
58 ldap_first_attribute( LDAP *ld, LDAPMessage *entry, BerElement **ber ) in ldap_first_attribute()
113 ldap_next_attribute( LDAP *ld, LDAPMessage *entry, BerElement *ber ) in ldap_next_attribute()
H A Dreferral.c121 nsldapi_parse_reference( LDAP *ld, BerElement *rber, char ***referralsp, in nsldapi_parse_reference()
125 BerElement ber; in nsldapi_parse_reference()
173 BerElement tmp; in ldap_get_reference_urls()
H A Dspagectrl.c24 BerElement *ber; in ldap_create_page_control()
52 BerElement *theBer; in ldap_parse_page_control()
H A Dproxyauthctrl.c51 BerElement *ber; in ldap_create_proxyauth_control()
115 BerElement *ber; in ldap_create_proxiedauth_control()
H A Drequest.c48 static int re_encode_request( LDAP *ld, BerElement *origber,
49 int msgid, LDAPURLDesc *ludp, BerElement **berp );
58 nsldapi_alloc_ber_with_options( LDAP *ld, BerElement **berp ) in nsldapi_alloc_ber_with_options()
79 nsldapi_set_ber_options( LDAP *ld, BerElement *ber ) in nsldapi_set_ber_options()
95 char *dn, BerElement *ber ) in nsldapi_send_initial_request()
147 BerElement *ber, /* message to send */ in nsldapi_send_server_request()
321 nsldapi_ber_flush( LDAP *ld, Sockbuf *sb, BerElement *ber, int freeit, in nsldapi_ber_flush()
951 BerElement *ber; in chase_one_referral()
1105 re_encode_request( LDAP *ld, BerElement *origber, int msgid, LDAPURLDesc *ludp, in re_encode_request()
1106 BerElement **berp ) in re_encode_request()
[all …]
H A Dpsearch.c30 BerElement *ber; in ldap_create_persistentsearch_control()
81 BerElement *ber; in ldap_parse_entrychange_control()
H A Dvlistctrl.c78 BerElement *ber; in ldap_create_virtuallist_control()
185 BerElement *ber; in ldap_parse_virtuallist_control()
H A Dcontrol.c34 BerElement *ber ) in nsldapi_put_controls()
126 nsldapi_get_controls( BerElement *ber, LDAPControl ***controlsp ) in nsldapi_get_controls()
443 nsldapi_build_control( char *oid, BerElement *ber, int freeber, char iscritical, in nsldapi_build_control()
H A Dsaslbind.c54 BerElement *ber; in ldap_sasl_bind()
220 BerElement ber; in ldap_parse_sasl_bind_result()
H A Dsortctrl.c45 BerElement *ber; in ldap_create_sort_control()
144 BerElement *ber; in ldap_parse_sort_control()
/illumos-gate/usr/src/lib/libldap5/include/ldap/
H A Dsolaris-int.h141 LDAP_API(void) LDAP_CALL ber_special_free(void* buf, BerElement *ber);
142 LDAP_API(void*) LDAP_CALL ber_special_alloc(size_t size, BerElement **ppBer);
144 size_t buffer_size, ber_len_t *len, BerElement *ber,
147 size_t buffer_size, ber_len_t *len, BerElement *ber,
149 LDAP_API(void) LDAP_CALL ber_init_w_nullchar( BerElement *ber, int options );
150 LDAP_API(int) LDAP_CALL ber_set_option( BerElement *ber, int option,
152 LDAP_API(int) LDAP_CALL ber_get_option( BerElement *ber, int option,
160 LDAP_API(int) LDAP_CALL ber_flush( Sockbuf *sb, BerElement *ber, int freeit );
162 BerElement *ber );
/illumos-gate/usr/src/lib/libadutils/common/
H A Dldap_ping.c77 extern int ldap_put_filter(BerElement *ber, char *);
125 BerElement *
129 BerElement *ber; in cldap_build_request()
258 cldap_parse(ad_disc_t ctx, ad_disc_cds_t *cds, BerElement *ber) in cldap_parse()
389 BerElement *req = NULL; in ldap_ping()
390 BerElement *res = NULL; in ldap_ping()
/illumos-gate/usr/src/cmd/ldap/common/
H A Ddtest.c43 BerElement ber; in main()

123