LDAP v3.
If you'd like to modify the format only you can specify an empty string
and zero for the first two parameters. Example: ssl_c_i_dn(,0,rfc2253)
+ If the requested entry's ASN.1 value contains an embedded NUL byte
+ followed by other data, it is considered malformed and no data is
+ returned.
ssl_c_key_alg : string
Returns the name of the algorithm used to generate the key of the certificate
different protocols. Currently supported is rfc2253 for LDAP v3. If you'd like
to modify the format only you can specify an empty string and zero for the
first two parameters. Example: ssl_c_r_dn(,0,rfc2253)
+ If the requested entry's ASN.1 value contains an embedded NUL byte
+ followed by other data, it is considered malformed and no data is
+ returned.
ssl_c_s_dn([<entry>[,<occ>[,<format>]]]) : string
When the incoming connection was made over an SSL/TLS transport layer,
LDAP v3.
If you'd like to modify the format only you can specify an empty string
and zero for the first two parameters. Example: ssl_c_s_dn(,0,rfc2253)
+ If the requested entry's ASN.1 value contains an embedded NUL byte
+ followed by other data, it is considered malformed and no data is
+ returned.
ssl_c_san : string
When the incoming connection was made over an SSL/TLS transport layer, and was
LDAP v3.
If you'd like to modify the format only you can specify an empty string
and zero for the first two parameters. Example: ssl_f_i_dn(,0,rfc2253)
+ If the requested entry's ASN.1 value contains an embedded NUL byte
+ followed by other data, it is considered malformed and no data is
+ returned.
ssl_f_key_alg : string
Returns the name of the algorithm used to generate the key of the certificate
LDAP v3.
If you'd like to modify the format only you can specify an empty string
and zero for the first two parameters. Example: ssl_f_s_dn(,0,rfc2253)
+ If the requested entry's ASN.1 value contains an embedded NUL byte
+ followed by other data, it is considered malformed and no data is
+ returned.
ssl_f_serial : binary
Returns the serial of the certificate presented by the frontend when the
LDAP v3.
If you'd like to modify the format only you can specify an empty string
and zero for the first two parameters. Example: ssl_s_i_dn(,0,rfc2253)
+ If the requested entry's ASN.1 value contains an embedded NUL byte
+ followed by other data, it is considered malformed and no data is
+ returned.
ssl_s_key_alg : string
Returns the name of the algorithm used to generate the key of the certificate
LDAP v3.
If you'd like to modify the format only you can specify an empty string
and zero for the first two parameters. Example: ssl_s_s_dn(,0,rfc2253)
+ If the requested entry's ASN.1 value contains an embedded NUL byte
+ followed by other data, it is considered malformed and no data is
+ returned.
ssl_s_serial : binary
Returns the serial of the certificate presented by the server when the
__X509_NAME_CONST__ ASN1_OBJECT *obj;
__X509_NAME_CONST__ ASN1_STRING *data;
const unsigned char *data_ptr;
+ const unsigned char *nul;
int data_len;
int i, j, n;
int cur = 0;
if (data_len > out->size)
return -1;
+ /* reject embedded NUL (truncation/injection risk for NUL-terminated
+ * consumers); trailing NUL(s) carry nothing after them so they're
+ * harmless padding, just keep one and skip the extra ones
+ */
+ nul = memchr(data_ptr, 0, data_len);
+ if (nul) {
+ const unsigned char *p;
+
+ for (p = nul; p < data_ptr + data_len; p++) {
+ if (*p)
+ return 0;
+ }
+ data_len = nul - data_ptr + 1;
+ }
+
memcpy(out->area, data_ptr, data_len);
out->data = data_len;
return 1;