summaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@g10code.com>2016-11-29 14:41:22 +0100
committerNeal H. Walfield <neal@g10code.com>2016-11-29 14:56:00 +0100
commit522f74f7e377135cf098b6b0b9b35284c1dfc963 (patch)
treea5efc5605817ff6473b2149c016343716d0c00ed /g10/packet.h
parentg10: Extend TOFU_STATS to always show the validity (diff)
downloadgnupg2-522f74f7e377135cf098b6b0b9b35284c1dfc963.tar.xz
gnupg2-522f74f7e377135cf098b6b0b9b35284c1dfc963.zip
Improve some comments.
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 65f60a9e5..9780d939e 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -95,7 +95,9 @@ typedef struct
typedef struct {
/* RFC 4880: this must be 4. */
byte version;
- /* The cipher algorithm used. */
+ /* The cipher algorithm used to encrypt the session key. (This may
+ be different from the algorithm that is used to encrypt the SED
+ packet.) */
byte cipher_algo;
/* The string-to-key specifier. */
STRING2KEY s2k;
@@ -269,7 +271,7 @@ typedef struct
struct user_attribute *attribs;
int numattribs;
/* If this is not NULL, the packet is a user attribute rather than a
- user id. (Serialized.) */
+ user id (See RFC 4880 5.12). (Serialized.) */
byte *attrib_data;
/* The length of ATTRIB_DATA. */
unsigned long attrib_len;