summaryrefslogtreecommitdiff
path: root/lib/opencdk/read-packet.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@crystal.(none)>2008-08-28 23:28:34 +0300
committerNikos Mavrogiannopoulos <nmav@crystal.(none)>2008-08-28 23:28:34 +0300
commit371593f611c503ebea0c07b93ff9e42ae03681a0 (patch)
treecd5057a871679506458f2e3c22468c243cf14a8a /lib/opencdk/read-packet.c
parent0d538af03deb419020897d18741a1038552e07ca (diff)
downloadgnutls-371593f611c503ebea0c07b93ff9e42ae03681a0.tar.gz
avoid using gcrypt function.
Diffstat (limited to 'lib/opencdk/read-packet.c')
-rw-r--r--lib/opencdk/read-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/opencdk/read-packet.c b/lib/opencdk/read-packet.c
index bc3c58bcc8..5b423945fa 100644
--- a/lib/opencdk/read-packet.c
+++ b/lib/opencdk/read-packet.c
@@ -359,7 +359,7 @@ read_secret_key (cdk_stream_t inp, size_t pktlen, cdk_pkt_seckey_t sk)
if (sk->protect.s2k->mode == CDK_S2K_GNU_EXT)
sk->protect.ivlen = 0;
else {
- sk->protect.ivlen = gcry_cipher_get_algo_blklen (sk->protect.algo);
+ sk->protect.ivlen = _gnutls_cipher_get_block_size ( sk->protect.algo);
if (!sk->protect.ivlen)
return CDK_Inv_Packet;
rc = stream_read (inp, sk->protect.iv, sk->protect.ivlen, &nread);