diff options
author | Bodo Möller <bodo@openssl.org> | 2000-09-04 15:34:43 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-09-04 15:34:43 +0000 |
commit | bbb8de0966f0181498a0491f42d8b839778a93e7 (patch) | |
tree | 5a645a6357da154d8a320950a302cdf6f1d7e793 /crypto/x509/x509_lu.c | |
parent | 5e386163801a248063afbc9e346ab1b098356729 (diff) |
Avoid abort() throughout the library, except when preprocessor
symbols for debugging are defined.
Diffstat (limited to 'crypto/x509/x509_lu.c')
-rw-r--r-- | crypto/x509/x509_lu.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index 5e5458568f..68f26f149b 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -168,7 +168,8 @@ static unsigned long x509_object_hash(X509_OBJECT *a) h=X509_NAME_hash(a->data.crl->crl->issuer); break; default: - abort(); + /* abort(); */ + return 0; } return(h); } @@ -188,7 +189,8 @@ static int x509_object_cmp(X509_OBJECT *a, X509_OBJECT *b) ret=X509_CRL_cmp(a->data.crl,b->data.crl); break; default: - abort(); + /* abort(); */ + return 0; } return(ret); } @@ -221,7 +223,9 @@ static void cleanup(X509_OBJECT *a) X509_CRL_free(a->data.crl); } else - abort(); + { + /* abort(); */ + } OPENSSL_free(a); } @@ -374,7 +378,8 @@ X509_OBJECT *X509_OBJECT_retrieve_by_subject(LHASH *h, int type, crl_info_s.issuer=name; break; default: - abort(); + /* abort(); */ + return NULL; } tmp=(X509_OBJECT *)lh_retrieve(h,&stmp); |