summaryrefslogtreecommitdiff
path: root/lib/gnutls_privkey.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-07 12:08:03 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-11-07 12:08:03 +0000
commit5881a6e5ff317177e1a8d636c2125fb0172d0310 (patch)
treee927d0806adf4c41353665df96d5030225471e6a /lib/gnutls_privkey.c
parent705bed9d7ba3cb8c84682cd157b73595d1b1217b (diff)
downloadgnutls-5881a6e5ff317177e1a8d636c2125fb0172d0310.tar.gz
corrected memory leaks and other bugs
Diffstat (limited to 'lib/gnutls_privkey.c')
-rw-r--r--lib/gnutls_privkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_privkey.c b/lib/gnutls_privkey.c
index dd34815937..7a64d6b3f0 100644
--- a/lib/gnutls_privkey.c
+++ b/lib/gnutls_privkey.c
@@ -64,7 +64,7 @@ int _gnutls_pkcs1key2gnutlsKey(gnutls_private_key * pkey, gnutls_datum cert) {
asn1_delete_structure(pkcs_asn);
return GNUTLS_E_ASN1_PARSING_ERROR;
}
- if (gcry_mpi_scan( &pkey->params[0], /* u */
+ if (_gnutls_mpi_scan( &pkey->params[0], /* u */
GCRYMPI_FMT_USG, str, &len) != 0 || pkey->params[0]==NULL) {
gnutls_assert();
asn1_delete_structure(pkcs_asn);
@@ -82,7 +82,7 @@ int _gnutls_pkcs1key2gnutlsKey(gnutls_private_key * pkey, gnutls_datum cert) {
return GNUTLS_E_ASN1_PARSING_ERROR;
}
- if (gcry_mpi_scan( &pkey->params[1], /* A */
+ if (_gnutls_mpi_scan( &pkey->params[1], /* A */
GCRYMPI_FMT_USG, str, &len) != 0 || pkey->params[1] == NULL) {
gnutls_assert();
asn1_delete_structure(pkcs_asn);