[gnutls-devel] GnuTLS | WIP: RFC7250 Raw public keys (!650)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Sep 14 13:13:16 CEST 2018


Nikos Mavrogiannopoulos started a new discussion on lib/pcert.c:

>  	return ret;
>  }
>  
> +#ifdef ENABLE_RAWPK
> +/**
> + * gnutls_pcert_import_rawpk:
> + * @pcert: The pcert structure to import the data into.
> + * @pubkey: The raw public-key in #gnutls_pubkey_t format to be imported
> + * @flags: zero for now
> + *
> + * This convenience function will import (i.e. convert) the given raw
> + * public key @pubkey into a #gnutls_pcert_st structure. The structure
> + * must be deinitialized afterwards using gnutls_pcert_deinit();
> + *

This doesn't document what happens to pubkey. As it is the code, it is associated with the pcert structure and will be deinitialized with it. That is not clear from the documentation.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_101409687
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/20180914/37ee409a/attachment.html>


More information about the Gnutls-devel mailing list