summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorNikolay Morozov <nmorozoff77@yandex.ru>2020-02-12 15:20:41 +0300
committerNikolay Morozov <nmorozoff77@yandex.ru>2020-02-12 15:20:41 +0300
commit64dc4eeef8d6f15c6d3ae296b07cb2fa9e84404b (patch)
treed33fc9074c53fb6f0ef686f0d8499727b9a254bb /crypto
parent2ba3e6538567fffec1f169668a571c8ad8f766fa (diff)
Forgotten GOST2012 support in non-vital places
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/11072)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asn1/asn_mime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/asn1/asn_mime.c b/crypto/asn1/asn_mime.c
index b8ea51136a..89e3140541 100644
--- a/crypto/asn1/asn_mime.c
+++ b/crypto/asn1/asn_mime.c
@@ -198,6 +198,14 @@ static int asn1_write_micalg(BIO *out, STACK_OF(X509_ALGOR) *mdalgs)
BIO_puts(out, "gostr3411-94");
goto err;
+ case NID_id_GostR3411_2012_256:
+ BIO_puts(out, "gostr3411-2012-256");
+ goto err;
+
+ case NID_id_GostR3411_2012_512:
+ BIO_puts(out, "gostr3411-2012-512");
+ goto err;
+
default:
if (have_unknown)
write_comma = 0;