summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5e1b22d)
There are various signature subpacket types we know about, but have
no need to decode (or it doesn't make sense to decode if we're not
checking that the signature is valid). Add some more to prevent
warnings when adding keys that have these subpackets present.
*creation = data[offset + packetlen - 1];
}
break;
*creation = data[offset + packetlen - 1];
}
break;
- case OPENPGP_SIGSUB_EXPIRY:
/*
* Signature expiration time. Might want to output this?
*/
break;
/*
* Signature expiration time. Might want to output this?
*/
break;
- case OPENPGP_SIGSUB_REGEX:
- /*
- * Regular expression for UIDs this sig is over.
- */
- break;
case OPENPGP_SIGSUB_ISSUER:
if (keyid != NULL) {
*keyid = data[offset+packetlen - 8];
case OPENPGP_SIGSUB_ISSUER:
if (keyid != NULL) {
*keyid = data[offset+packetlen - 8];
*keyid += data[offset+packetlen - 1];
}
break;
*keyid += data[offset+packetlen - 1];
}
break;
+ case OPENPGP_SIGSUB_EXPIRY:
+ case OPENPGP_SIGSUB_EXPORTABLE:
+ case OPENPGP_SIGSUB_TRUSTSIG:
+ case OPENPGP_SIGSUB_REGEX:
+ case OPENPGP_SIGSUB_KEYEXPIRY:
+ case OPENPGP_SIGSUB_PREFSYM:
case OPENPGP_SIGSUB_NOTATION:
case OPENPGP_SIGSUB_NOTATION:
- /*
- * Annotation data.
- */
- break;
-
+ case OPENPGP_SIGSUB_PREFHASH:
+ case OPENPGP_SIGSUB_PREFCOMPRESS:
case OPENPGP_SIGSUB_KEYSERVER:
case OPENPGP_SIGSUB_KEYSERVER:
- /*
- * Key server preferences. Including no-modify.
- */
- break;
case OPENPGP_SIGSUB_PRIMARYUID:
case OPENPGP_SIGSUB_PRIMARYUID:
- /*
- * Primary UID.
- */
- break;
case OPENPGP_SIGSUB_POLICYURI:
case OPENPGP_SIGSUB_POLICYURI:
+ case OPENPGP_SIGSUB_KEYFLAGS:
+ * Various subpacket types we know about, but don't
+ * currently handle. Some are candidates for being
+ * supported if we add signature checking support.
#define OPENPGP_SIGSUB_CREATION 2
#define OPENPGP_SIGSUB_EXPIRY 3
#define OPENPGP_SIGSUB_CREATION 2
#define OPENPGP_SIGSUB_EXPIRY 3
+#define OPENPGP_SIGSUB_EXPORTABLE 4
+#define OPENPGP_SIGSUB_TRUSTSIG 5
#define OPENPGP_SIGSUB_REGEX 6
#define OPENPGP_SIGSUB_REGEX 6
+#define OPENPGP_SIGSUB_KEYEXPIRY 9
+#define OPENPGP_SIGSUB_PREFSYM 11
#define OPENPGP_SIGSUB_ISSUER 16
#define OPENPGP_SIGSUB_NOTATION 20
#define OPENPGP_SIGSUB_ISSUER 16
#define OPENPGP_SIGSUB_NOTATION 20
+#define OPENPGP_SIGSUB_PREFHASH 21
+#define OPENPGP_SIGSUB_PREFCOMPRESS 22
#define OPENPGP_SIGSUB_KEYSERVER 23
#define OPENPGP_SIGSUB_PRIMARYUID 25
#define OPENPGP_SIGSUB_POLICYURI 26
#define OPENPGP_SIGSUB_KEYSERVER 23
#define OPENPGP_SIGSUB_PRIMARYUID 25
#define OPENPGP_SIGSUB_POLICYURI 26
+#define OPENPGP_SIGSUB_KEYFLAGS 27
#endif /* __OPENPGP_H__ */
#endif /* __OPENPGP_H__ */