diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-21 12:26:54 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-21 12:26:54 +0200 |
commit | 7c6e3b075e7d7a0cdeafaa0b9701a9f6dd29cdee (patch) | |
tree | 0d1d4b5044a7a1df7793014fc401adb81573a180 /ncr-pk.c | |
parent | 8f6ef273e5e0ef9bad24ebe6b95cbf90f82e74b9 (diff) | |
download | cryptodev-linux-7c6e3b075e7d7a0cdeafaa0b9701a9f6dd29cdee.tar.gz cryptodev-linux-7c6e3b075e7d7a0cdeafaa0b9701a9f6dd29cdee.tar.xz cryptodev-linux-7c6e3b075e7d7a0cdeafaa0b9701a9f6dd29cdee.zip |
Fix in export of DH keys.
Diffstat (limited to 'ncr-pk.c')
-rw-r--r-- | ncr-pk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -167,8 +167,9 @@ int ncr_pk_pack( const struct key_item_st * key, uint8_t * packed, uint32_t * pa } break; case NCR_ALG_DH: - ret = dh_export(packed, &max_size, key->key.pk.dsa.type, (void*)&key->key.pk.dsa); + ret = dh_export(packed, &max_size, key->key.pk.dh.type, (void*)&key->key.pk.dh); if (ret < 0) { + *packed_size = max_size; err(); return ret; } |