]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
reduce common asserts to assist in debugging the library
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 15 Aug 2017 08:47:11 +0000 (10:47 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 15 Aug 2017 08:52:33 +0000 (10:52 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/x509/common.c
lib/x509/dn.c
lib/x509/extensions.c
lib/x509/mpi.c

index 2575f6277dd3ef8e640a0c735034057fedf58f22..f4310d7e3632952bf980d52aa0f413dce6f9788a 100644 (file)
@@ -695,7 +695,6 @@ x509_read_value(ASN1_TYPE c, const char *root,
 
        if (result != ASN1_MEM_ERROR) {
                if (result != ASN1_SUCCESS || allow_null == 0 || len != 0) {
-                       gnutls_assert();
                        result = _gnutls_asn2err(result);
                        return result;
                }
index 04ae1825b2e303c1bf83e7cafaf2423367ae9bde..07b9d94b6b74f80e23fa71f17cbe0c57f3029052 100644 (file)
@@ -982,7 +982,6 @@ _gnutls_x509_compare_raw_dn(const gnutls_datum_t * dn1,
 {
 
        if (dn1->size != dn2->size) {
-               gnutls_assert();
                return 0;
        }
        if (memcmp(dn1->data, dn2->data, dn2->size) != 0) {
index 2a983db9ab5a5f03c40cbcf170281ff3f73b4ef2..50c268450269ec9d4150db47ae425e4ecef7cd1c 100644 (file)
@@ -62,7 +62,6 @@ _gnutls_get_extension(ASN1_TYPE asn, const char *root,
                result = asn1_read_value(asn, name2, extnID, &len);
 
                if (result == ASN1_ELEMENT_NOT_FOUND) {
-                       gnutls_assert();
                        break;
                } else if (result != ASN1_SUCCESS) {
                        gnutls_assert();
index 5bf01de347032f6c96862ad785831f71f0cd7d94..2c301d321d7f580427d96b172416597101329c8a 100644 (file)
@@ -392,7 +392,6 @@ _gnutls_x509_read_uint(ASN1_TYPE node, const char *value,
        len = 0;
        result = asn1_read_value(node, value, NULL, &len);
        if (result != ASN1_MEM_ERROR) {
-               gnutls_assert();
                return _gnutls_asn2err(result);
        }