mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Do something with the error text.
This commit is contained in:
parent
5b4b535617
commit
be89c094f6
@ -3506,8 +3506,15 @@ dn_openssl2ldap(X509_NAME *name)
|
|||||||
|
|
||||||
bio = BIO_new(BIO_s_mem());
|
bio = BIO_new(BIO_s_mem());
|
||||||
if ( !bio ) {
|
if ( !bio ) {
|
||||||
fprintf(stderr, ERR_error_string(ERR_get_error(),NULL));
|
#ifdef NEW_LOGGING
|
||||||
/* ERR_print_errors(bio_err); */
|
LDAP_LOG(( "schema", LDAP_LEVEL_ENTRY,
|
||||||
|
"dn_openssl2ldap: error creating BIO_s_mem: %s\n",
|
||||||
|
ERR_error_string(ERR_get_error(),NULL)));
|
||||||
|
#else
|
||||||
|
Debug( LDAP_DEBUG_ARGS, "dn_openssl2ldap: "
|
||||||
|
"error creating BIO: %s\n",
|
||||||
|
ERR_error_string(ERR_get_error(),NULL), NULL, NULL );
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
X509_NAME_print_ex(bio, name, 0, XN_FLAG_RFC2253);
|
X509_NAME_print_ex(bio, name, 0, XN_FLAG_RFC2253);
|
||||||
@ -3536,7 +3543,15 @@ certificateExactConvert(
|
|||||||
|
|
||||||
xcert = d2i_X509(NULL, &p, in->bv_len);
|
xcert = d2i_X509(NULL, &p, in->bv_len);
|
||||||
if ( !xcert ) {
|
if ( !xcert ) {
|
||||||
ERR_error_string(ERR_get_error(),NULL);
|
#ifdef NEW_LOGGING
|
||||||
|
LDAP_LOG(( "schema", LDAP_LEVEL_ENTRY,
|
||||||
|
"certificateExactConvert: error parsing cert: %s\n",
|
||||||
|
ERR_error_string(ERR_get_error(),NULL)));
|
||||||
|
#else
|
||||||
|
Debug( LDAP_DEBUG_ARGS, "certificateExactConvert: "
|
||||||
|
"error parsing cert: %s\n",
|
||||||
|
ERR_error_string(ERR_get_error(),NULL), NULL, NULL );
|
||||||
|
#endif
|
||||||
return LDAP_INVALID_SYNTAX;
|
return LDAP_INVALID_SYNTAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3639,7 +3654,15 @@ certificateExactMatch(
|
|||||||
|
|
||||||
xcert = d2i_X509(NULL, &p, value->bv_len);
|
xcert = d2i_X509(NULL, &p, value->bv_len);
|
||||||
if ( !xcert ) {
|
if ( !xcert ) {
|
||||||
ERR_error_string(ERR_get_error(),NULL);
|
#ifdef NEW_LOGGING
|
||||||
|
LDAP_LOG(( "schema", LDAP_LEVEL_ENTRY,
|
||||||
|
"certificateExactMatch: error parsing cert: %s\n",
|
||||||
|
ERR_error_string(ERR_get_error(),NULL)));
|
||||||
|
#else
|
||||||
|
Debug( LDAP_DEBUG_ARGS, "certificateExactMatch: "
|
||||||
|
"error parsing cert: %s\n",
|
||||||
|
ERR_error_string(ERR_get_error(),NULL), NULL, NULL );
|
||||||
|
#endif
|
||||||
return LDAP_INVALID_SYNTAX;
|
return LDAP_INVALID_SYNTAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user