use lower-case labels

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2021-12-02 17:07:59 +01:00
parent c3c28cb4c1
commit b0631e322f
3 changed files with 10 additions and 10 deletions

View File

@@ -57,13 +57,13 @@ static gnutls_x509_crt_t _tls_load_cert(xmpp_conn_t *conn)
if (gnutls_x509_crt_init(&cert) < 0)
return NULL;
if (gnutls_load_file(conn->tls_client_cert, &data) < 0)
goto LBL_ERR;
goto error_out;
res = gnutls_x509_crt_import(cert, &data, GNUTLS_X509_FMT_PEM);
gnutls_free(data.data);
if (res < 0)
goto LBL_ERR;
goto error_out;
return cert;
LBL_ERR:
error_out:
gnutls_x509_crt_deinit(cert);
return NULL;
}