mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
removed obsolete fingerprint identification types
This commit is contained in:
parent
edd354db6f
commit
1ef69b01ab
@ -48,12 +48,11 @@ ENUM_BEGIN(id_type_names, ID_ANY, ID_KEY_ID,
|
|||||||
"ID_DER_ASN1_DN",
|
"ID_DER_ASN1_DN",
|
||||||
"ID_DER_ASN1_GN",
|
"ID_DER_ASN1_GN",
|
||||||
"ID_KEY_ID");
|
"ID_KEY_ID");
|
||||||
ENUM_NEXT(id_type_names, ID_DER_ASN1_GN_URI, ID_CERT_DER_SHA1, ID_KEY_ID,
|
ENUM_NEXT(id_type_names, ID_DER_ASN1_GN_URI, ID_MYID, ID_KEY_ID,
|
||||||
"ID_DER_ASN1_GN_URI",
|
"ID_DER_ASN1_GN_URI"
|
||||||
"ID_PUBKEY_INFO_SHA1",
|
"ID_IETF_ATTR_STRING"
|
||||||
"ID_PUBKEY_SHA1",
|
"ID_MYID");
|
||||||
"ID_CERT_DER_SHA1");
|
ENUM_END(id_type_names, ID_MYID);
|
||||||
ENUM_END(id_type_names, ID_CERT_DER_SHA1);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* coding of X.501 distinguished name
|
* coding of X.501 distinguished name
|
||||||
@ -809,7 +808,8 @@ int identification_printf_hook(char *dst, size_t len, printf_hook_spec_t *spec,
|
|||||||
snprintf(buf, sizeof(buf), "(ASN.1 general Name");
|
snprintf(buf, sizeof(buf), "(ASN.1 general Name");
|
||||||
break;
|
break;
|
||||||
case ID_KEY_ID:
|
case ID_KEY_ID:
|
||||||
if (chunk_printable(this->encoded, NULL, '?'))
|
if (chunk_printable(this->encoded, NULL, '?') &&
|
||||||
|
this->encoded.len != HASH_SIZE_SHA1)
|
||||||
{ /* fully printable, use ascii version */
|
{ /* fully printable, use ascii version */
|
||||||
snprintf(buf, sizeof(buf), "%.*s",
|
snprintf(buf, sizeof(buf), "%.*s",
|
||||||
this->encoded.len, this->encoded.ptr);
|
this->encoded.len, this->encoded.ptr);
|
||||||
@ -819,11 +819,6 @@ int identification_printf_hook(char *dst, size_t len, printf_hook_spec_t *spec,
|
|||||||
snprintf(buf, sizeof(buf), "%#B", &this->encoded);
|
snprintf(buf, sizeof(buf), "%#B", &this->encoded);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ID_PUBKEY_INFO_SHA1:
|
|
||||||
case ID_PUBKEY_SHA1:
|
|
||||||
case ID_CERT_DER_SHA1:
|
|
||||||
snprintf(buf, sizeof(buf), "%#B", &this->encoded);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
snprintf(buf, sizeof(buf), "(unknown ID type: %d)", this->type);
|
snprintf(buf, sizeof(buf), "(unknown ID type: %d)", this->type);
|
||||||
break;
|
break;
|
||||||
|
@ -129,30 +129,15 @@ enum id_type_t {
|
|||||||
*/
|
*/
|
||||||
ID_DER_ASN1_GN_URI = 201,
|
ID_DER_ASN1_GN_URI = 201,
|
||||||
|
|
||||||
/**
|
|
||||||
* SHA1 hash over PKCS#1 subjectPublicKeyInfo
|
|
||||||
*/
|
|
||||||
ID_PUBKEY_INFO_SHA1 = 202,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* SHA1 hash over PKCS#1 subjectPublicKey
|
|
||||||
*/
|
|
||||||
ID_PUBKEY_SHA1 = 203,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* SHA1 hash of the binary DER encoding of a certificate
|
|
||||||
*/
|
|
||||||
ID_CERT_DER_SHA1 = 204,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IETF Attribute Syntax String (RFC 3281)
|
* IETF Attribute Syntax String (RFC 3281)
|
||||||
*/
|
*/
|
||||||
ID_IETF_ATTR_STRING = 205,
|
ID_IETF_ATTR_STRING = 202,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private ID used by the pluto daemon for opportunistic encryption
|
* Private ID used by the pluto daemon for opportunistic encryption
|
||||||
*/
|
*/
|
||||||
ID_MYID = 206,
|
ID_MYID = 203,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user