summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/objects')
-rw-r--r--src/lib/libcrypto/objects/obj_xref.c9
-rw-r--r--src/lib/libcrypto/objects/obj_xref.h2
-rw-r--r--src/lib/libcrypto/objects/obj_xref.txt4
3 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/libcrypto/objects/obj_xref.c b/src/lib/libcrypto/objects/obj_xref.c
index 152eca5c67..9f744bcede 100644
--- a/src/lib/libcrypto/objects/obj_xref.c
+++ b/src/lib/libcrypto/objects/obj_xref.c
@@ -110,8 +110,10 @@ int OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid)
110#endif 110#endif
111 if (rv == NULL) 111 if (rv == NULL)
112 return 0; 112 return 0;
113 *pdig_nid = rv->hash_id; 113 if (pdig_nid)
114 *ppkey_nid = rv->pkey_id; 114 *pdig_nid = rv->hash_id;
115 if (ppkey_nid)
116 *ppkey_nid = rv->pkey_id;
115 return 1; 117 return 1;
116 } 118 }
117 119
@@ -144,7 +146,8 @@ int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid)
144#endif 146#endif
145 if (rv == NULL) 147 if (rv == NULL)
146 return 0; 148 return 0;
147 *psignid = (*rv)->sign_id; 149 if (psignid)
150 *psignid = (*rv)->sign_id;
148 return 1; 151 return 1;
149 } 152 }
150 153
diff --git a/src/lib/libcrypto/objects/obj_xref.h b/src/lib/libcrypto/objects/obj_xref.h
index d5b9b8e198..e23938c296 100644
--- a/src/lib/libcrypto/objects/obj_xref.h
+++ b/src/lib/libcrypto/objects/obj_xref.h
@@ -38,10 +38,12 @@ static const nid_triple sigoid_srt[] =
38 {NID_id_GostR3411_94_with_GostR3410_94, NID_id_GostR3411_94, NID_id_GostR3410_94}, 38 {NID_id_GostR3411_94_with_GostR3410_94, NID_id_GostR3411_94, NID_id_GostR3410_94},
39 {NID_id_GostR3411_94_with_GostR3410_94_cc, NID_id_GostR3411_94, NID_id_GostR3410_94_cc}, 39 {NID_id_GostR3411_94_with_GostR3410_94_cc, NID_id_GostR3411_94, NID_id_GostR3410_94_cc},
40 {NID_id_GostR3411_94_with_GostR3410_2001_cc, NID_id_GostR3411_94, NID_id_GostR3410_2001_cc}, 40 {NID_id_GostR3411_94_with_GostR3410_2001_cc, NID_id_GostR3411_94, NID_id_GostR3410_2001_cc},
41 {NID_rsassaPss, NID_undef, NID_rsaEncryption},
41 }; 42 };
42 43
43static const nid_triple * const sigoid_srt_xref[] = 44static const nid_triple * const sigoid_srt_xref[] =
44 { 45 {
46 &sigoid_srt[29],
45 &sigoid_srt[17], 47 &sigoid_srt[17],
46 &sigoid_srt[18], 48 &sigoid_srt[18],
47 &sigoid_srt[0], 49 &sigoid_srt[0],
diff --git a/src/lib/libcrypto/objects/obj_xref.txt b/src/lib/libcrypto/objects/obj_xref.txt
index e45b3d34b9..cb917182ee 100644
--- a/src/lib/libcrypto/objects/obj_xref.txt
+++ b/src/lib/libcrypto/objects/obj_xref.txt
@@ -13,6 +13,10 @@ sha512WithRSAEncryption sha512 rsaEncryption
13sha224WithRSAEncryption sha224 rsaEncryption 13sha224WithRSAEncryption sha224 rsaEncryption
14mdc2WithRSA mdc2 rsaEncryption 14mdc2WithRSA mdc2 rsaEncryption
15ripemd160WithRSA ripemd160 rsaEncryption 15ripemd160WithRSA ripemd160 rsaEncryption
16# For PSS the digest algorithm can vary and depends on the included
17# AlgorithmIdentifier. The digest "undef" indicates the public key
18# method should handle this explicitly.
19rsassaPss undef rsaEncryption
16 20
17# Alternative deprecated OIDs. By using the older "rsa" OID this 21# Alternative deprecated OIDs. By using the older "rsa" OID this
18# type will be recognized by not normally used. 22# type will be recognized by not normally used.