diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-07 16:23:29 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-08 08:30:01 +0200 |
commit | 2c5129f360384cc74aa94290c4edd1463d3e558f (patch) | |
tree | 50aad16304755e84d2cf8b4ffd73384e1d9f74b6 /lib/crypto-selftests-pk.c | |
parent | d9a3e84f99f90b21d79a5874a0f117a3a2c524b7 (diff) | |
download | gnutls-2c5129f360384cc74aa94290c4edd1463d3e558f.tar.gz |
gnutls_pk_params_st: separate flags/qbits and curve
Previously we were using the field flags to store the
size of q in case of GNUTLS_PK_DH, some key generation flags
in case of GNUTLS_PK_RSA, and the curve in case of elliptic
curve key. Separate this into multiple fields to reduce
confusion on the field.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/crypto-selftests-pk.c')
-rw-r--r-- | lib/crypto-selftests-pk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto-selftests-pk.c b/lib/crypto-selftests-pk.c index e427bb7da5..22f0c868fa 100644 --- a/lib/crypto-selftests-pk.c +++ b/lib/crypto-selftests-pk.c @@ -608,8 +608,8 @@ static int test_ecdh(void) gnutls_pk_params_init(&priv); gnutls_pk_params_init(&pub); - priv.flags = GNUTLS_ECC_CURVE_SECP256R1; - pub.flags = GNUTLS_ECC_CURVE_SECP256R1; + priv.curve = GNUTLS_ECC_CURVE_SECP256R1; + pub.curve = GNUTLS_ECC_CURVE_SECP256R1; priv.algo = pub.algo = GNUTLS_PK_EC; |