From: Nikos Mavrogiannopoulos Date: Fri, 8 Nov 2013 10:09:41 +0000 (+0100) Subject: in gnutls_x509_privkey_generate() allow specifying an explicit curve. X-Git-Tag: gnutls_3_3_0pre0~520^2~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3775eed484aa4e149c554f840df443a912f1c055;p=thirdparty%2Fgnutls.git in gnutls_x509_privkey_generate() allow specifying an explicit curve. --- diff --git a/lib/gnutls_privkey.c b/lib/gnutls_privkey.c index 4b95330795..48afb06604 100644 --- a/lib/gnutls_privkey.c +++ b/lib/gnutls_privkey.c @@ -554,6 +554,10 @@ gnutls_privkey_import_x509(gnutls_privkey_t pkey, * This function will generate a random private key. Note that this * function must be called on an empty private key. * + * Note that when generating an elliptic curve key, the curve + * can be substituted in the place of the bits parameter using the + * GNUTLS_CURVE_TO_BITS() macro. + * * Do not set the number of bits directly, use gnutls_sec_param_to_pk_bits(). * * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a