Changeset View
Changeset View
Standalone View
Standalone View
g10/sig-check.c
Context not available. | |||||
PKT_public_key *pripk = kb->pkt->pkt.public_key; | PKT_public_key *pripk = kb->pkt->pkt.public_key; | ||||
gcry_md_hd_t md; | gcry_md_hd_t md; | ||||
int signer_alloced = 0; | int signer_alloced = 0; | ||||
int certification = 0; | |||||
rc = openpgp_pk_test_algo (sig->pubkey_algo); | rc = openpgp_pk_test_algo (sig->pubkey_algo); | ||||
if (rc) | if (rc) | ||||
Context not available. | |||||
/* Certification revocation. */ | /* Certification revocation. */ | ||||
|| sig->sig_class == 0x30) | || sig->sig_class == 0x30) | ||||
{ | { | ||||
certification = 1; | |||||
if (packet->pkttype != PKT_USER_ID) | if (packet->pkttype != PKT_USER_ID) | ||||
return gpg_error (GPG_ERR_SIG_CLASS); | return gpg_error (GPG_ERR_SIG_CLASS); | ||||
} | } | ||||
Context not available. | |||||
signer_alloced = 2; | signer_alloced = 2; | ||||
} | } | ||||
if (certification) | |||||
signer->req_usage = PUBKEY_USAGE_CERT; | |||||
rc = get_pubkey (ctrl, signer, sig->keyid); | rc = get_pubkey (ctrl, signer, sig->keyid); | ||||
if (rc) | if (rc) | ||||
{ | { | ||||
Context not available. |