[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Nov 27 13:25:18 CET 2018
Nikos Mavrogiannopoulos started a new discussion on lib/pcert.c:
> + */
> + if (format == GNUTLS_X509_FMT_PEM) {
> + // Decode the PEM format to DER and copy to our pcert
> + ret = _gnutls_fbase64_decode(PEM_PK,
> + rawpubkey->data, rawpubkey->size,
> + &pcert->cert);
> +
> + if (ret < 0) {
> + return gnutls_assert_val(ret);
> + }
> + } else {
> + // Directly copy the raw DER data to our pcert
> + ret = _gnutls_set_datum(&pcert->cert, rawpubkey->data, rawpubkey->size);
> +
> + if (ret < 0) {
> + return gnutls_assert_val(ret);
memory leak; the pubkey in pcert
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_120391503
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/20181127/5f028456/attachment-0001.html>
More information about the Gnutls-devel
mailing list