[gnutls-devel] GnuTLS | Importing есс public keys and calculating bits (#640)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Wed Dec 5 20:42:54 CET 2018
I am not going to provide a fix, since I neither understand cryptography and bits very well, nor the internals of GnuTLS. A reproducer:
```diff
diff --git a/tests/pubkey-import-export.c b/tests/pubkey-import-export.c
--- a/tests/pubkey-import-export.c
+++ b/tests/pubkey-import-export.c
@@ -285,6 +285,10 @@ int check_pubkey_import_export(void)
if (ret < 0)
fail("error\n");
+ gnutls_pubkey_get_pk_algorithm(key, &ret);
+ if (ret == 0)
+ fail("error: key size is zero\n");
+
ret = gnutls_pubkey_verify_params(key);
if (ret != 0)
fail("error: %s\n", gnutls_strerror(ret));
```
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/640#note_122621556
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181205/f6b56de7/attachment.html>
More information about the Gnutls-devel
mailing list