int offset = 0;
int length = 0;
int packetlen = 0;
+ struct openpgp_fingerprint fp;
+ int i;
assert(data != NULL);
*keyid += data[offset+packetlen - 1];
}
break;
+ case OPENPGP_SIGSUB_ISSUER_FINGER:
+ if ((packetlen - 2) <= MAX_FINGERPRINT_LEN &&
+ keyid != NULL) {
+ fp.length = packetlen - 2;
+ for (i = 0; i < fp.length; i++) {
+ fp.fp[i] = data[offset + i + 2];
+ }
+ *keyid = fingerprint2keyid(&fp);
+ }
+ break;
case OPENPGP_SIGSUB_EXPIRY:
case OPENPGP_SIGSUB_EXPORTABLE:
case OPENPGP_SIGSUB_TRUSTSIG:
case OPENPGP_SIGSUB_REVOCATION_KEY:
case OPENPGP_SIGSUB_ISSUER_UID:
case OPENPGP_SIGSUB_URL:
- case OPENPGP_SIGSUB_ISSUER_FINGER:
+ case OPENPGP_SIGSUB_X_ISSUER_FINGER:
case OPENPGP_SIGSUB_NOTATION:
case OPENPGP_SIGSUB_PREFHASH:
case OPENPGP_SIGSUB_PREFCOMPRESS:
#define OPENPGP_SIGSUB_ISSUER 16
#define OPENPGP_SIGSUB_ISSUER_UID 17 /* Legacy */
#define OPENPGP_SIGSUB_URL 18 /* Legacy */
-#define OPENPGP_SIGSUB_ISSUER_FINGER 19 /* Legacy */
+#define OPENPGP_SIGSUB_X_ISSUER_FINGER 19 /* Legacy */
#define OPENPGP_SIGSUB_NOTATION 20
#define OPENPGP_SIGSUB_PREFHASH 21
#define OPENPGP_SIGSUB_PREFCOMPRESS 22
#define OPENPGP_SIGSUB_FEATURES 30
#define OPENPGP_SIGSUB_SIGNATURE_TARGET 31
#define OPENPGP_SIGSUB_EMBEDDED_SIG 32
+#define OPENPGP_SIGSUB_ISSUER_FINGER 33
#endif /* __OPENPGP_H__ */