mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
Update NSS to 3.48 while keeping vc2013 hackfix and no-sslkeylogfile intact.
This commit is contained in:
parent
0b9855b841
commit
171849c8e5
351 changed files with 115185 additions and 57946 deletions
|
|
@ -134,6 +134,7 @@ get_attr_type_str(CK_ATTRIBUTE_TYPE atype, char *str, int len)
|
|||
CASE(CKA_RESET_ON_INIT);
|
||||
CASE(CKA_HAS_RESET);
|
||||
CASE(CKA_VENDOR_DEFINED);
|
||||
CASE(CKA_PROFILE_ID);
|
||||
CASE(CKA_NSS_URL);
|
||||
CASE(CKA_NSS_EMAIL);
|
||||
CASE(CKA_NSS_SMIME_INFO);
|
||||
|
|
@ -189,6 +190,7 @@ get_obj_class(CK_OBJECT_CLASS objClass, char *str, int len)
|
|||
CASE(CKO_SECRET_KEY);
|
||||
CASE(CKO_HW_FEATURE);
|
||||
CASE(CKO_DOMAIN_PARAMETERS);
|
||||
CASE(CKO_PROFILE);
|
||||
CASE(CKO_NSS_CRL);
|
||||
CASE(CKO_NSS_SMIME);
|
||||
CASE(CKO_NSS_TRUST);
|
||||
|
|
@ -202,6 +204,27 @@ get_obj_class(CK_OBJECT_CLASS objClass, char *str, int len)
|
|||
PR_snprintf(str, len, "0x%p", objClass);
|
||||
}
|
||||
|
||||
static void
|
||||
get_profile_val(CK_PROFILE_ID profile, char *str, int len)
|
||||
{
|
||||
|
||||
const char *a = NULL;
|
||||
|
||||
switch (profile) {
|
||||
CASE(CKP_INVALID_ID);
|
||||
CASE(CKP_BASELINE_PROVIDER);
|
||||
CASE(CKP_EXTENDED_PROVIDER);
|
||||
CASE(CKP_AUTHENTICATION_TOKEN);
|
||||
CASE(CKP_PUBLIC_CERTIFICATES_TOKEN);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (a)
|
||||
PR_snprintf(str, len, "%s", a);
|
||||
else
|
||||
PR_snprintf(str, len, "0x%p", profile);
|
||||
}
|
||||
|
||||
static void
|
||||
get_trust_val(CK_TRUST trust, char *str, int len)
|
||||
{
|
||||
|
|
@ -376,6 +399,8 @@ print_mechanism(CK_MECHANISM_PTR m)
|
|||
CASE(CKM_AES_KEY_GEN);
|
||||
CASE(CKM_AES_MAC);
|
||||
CASE(CKM_AES_MAC_GENERAL);
|
||||
CASE(CKM_AES_CMAC);
|
||||
CASE(CKM_AES_CMAC_GENERAL);
|
||||
CASE(CKM_CAMELLIA_CBC);
|
||||
CASE(CKM_CAMELLIA_CBC_ENCRYPT_DATA);
|
||||
CASE(CKM_CAMELLIA_CBC_PAD);
|
||||
|
|
@ -686,6 +711,14 @@ print_attr_value(CK_ATTRIBUTE_PTR attr)
|
|||
atype, valstr, attr->ulValueLen));
|
||||
break;
|
||||
}
|
||||
case CKA_PROFILE_ID:
|
||||
if (attr->ulValueLen > 0 && attr->pValue) {
|
||||
CK_PROFILE_ID profile = *((CK_PROFILE_ID *)attr->pValue);
|
||||
get_profile_val(profile, valstr, sizeof valstr);
|
||||
PR_LOG(modlog, 4, (fmt_s_s_d,
|
||||
atype, valstr, attr->ulValueLen));
|
||||
break;
|
||||
}
|
||||
case CKA_ISSUER:
|
||||
case CKA_SUBJECT:
|
||||
if (attr->ulValueLen > 0 && attr->pValue) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue