summaryrefslogtreecommitdiff
path: root/lib/gnutls_privkey.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-07-01 16:39:54 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-07-01 16:39:54 +0000
commit956997c9fe46eaab738201a6afd0178a08e3de47 (patch)
tree51cdd0a02d2810b9ed13558dd477f6cc75c74ceb /lib/gnutls_privkey.c
parent735933650a55634aef378759493c84fc5bace50f (diff)
downloadgnutls-956997c9fe46eaab738201a6afd0178a08e3de47.tar.gz
cleanups
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 1548d654fd..5770a60077 100644
--- a/lib/gnutls_privkey.c
+++ b/lib/gnutls_privkey.c
@@ -54,7 +54,7 @@ int _gnutls_pkcs1key2gnutlsKey(gnutls_private_key * pkey, gnutls_datum cert) {
return GNUTLS_E_ASN1_PARSING_ERROR;
}
- len = sizeof(str);
+ len = sizeof(str) - 1;
result =
read_value("rsakey.privateExponent", str, &len);
if (result != ASN_OK) {
@@ -70,7 +70,7 @@ int _gnutls_pkcs1key2gnutlsKey(gnutls_private_key * pkey, gnutls_datum cert) {
}
- len = sizeof(str);
+ len = sizeof(str) - 1;
result =
read_value("rsakey.modulus", str, &len);
if (result != ASN_OK) {