summaryrefslogtreecommitdiffstats
path: root/g10/cipher.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1997-12-01 11:33:23 +0100
committerWerner Koch <wk@gnupg.org>1997-12-01 11:33:23 +0100
commit5c1cca042e6bc0de22c7913f08457c7b8a46e592 (patch)
tree234246f67cf2e7deb79b94e7491fdd7111c1c65e /g10/cipher.c
parentImproved prime number test (diff)
downloadgnupg2-5c1cca042e6bc0de22c7913f08457c7b8a46e592.tar.xz
gnupg2-5c1cca042e6bc0de22c7913f08457c7b8a46e592.zip
List and check sigs works
Diffstat (limited to 'g10/cipher.c')
-rw-r--r--g10/cipher.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/g10/cipher.c b/g10/cipher.c
index 562579a43..dedc52efe 100644
--- a/g10/cipher.c
+++ b/g10/cipher.c
@@ -47,21 +47,21 @@ cipher_filter( void *opaque, int control,
cipher_filter_context_t *cfx = opaque;
int rc=0;
- if( control == IOBUFCTRL_UNDERFLOW ) { /* decipher */
+ if( control == IOBUFCTRL_UNDERFLOW ) { /* decrypted */
rc = -1; /* FIXME:*/
}
- else if( control == IOBUFCTRL_FLUSH ) { /* encipher */
+ else if( control == IOBUFCTRL_FLUSH ) { /* encrypted */
assert(a);
if( !cfx->header ) {
PACKET pkt;
- PKT_encr_data ed;
+ PKT_encrypted ed;
byte temp[10];
memset( &ed, 0, sizeof ed );
ed.len = cfx->datalen;
init_packet( &pkt );
- pkt.pkttype = PKT_ENCR_DATA;
- pkt.pkt.encr_data = &ed;
+ pkt.pkttype = PKT_ENCRYPTED;
+ pkt.pkt.encrypted = &ed;
if( build_packet( a, &pkt ))
log_bug("build_packet(ENCR_DATA) failed\n");
randomize_buffer( temp, 8, 1 );