From 26c3c3b6496c40f28b59fdbb11351c1830d090b9 Mon Sep 17 00:00:00 2001 From: Maxim Fedorov Date: Tue, 15 May 2018 09:02:01 -0700 Subject: Use DER_NULL macro instead or <<5,0>> --- lib/public_key/src/public_key.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/public_key') diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl index 42fbd59e3c..d992037357 100644 --- a/lib/public_key/src/public_key.erl +++ b/lib/public_key/src/public_key.erl @@ -214,7 +214,7 @@ pem_entry_encode('PrivateKeyInfo', #'RSAPrivateKey'{} = PrivKey) -> pem_entry_encode('PrivateKeyInfo', {'PrivateKeyInfo', v1, {'PrivateKeyInfo_privateKeyAlgorithm', ?'rsaEncryption', - {asn1_OPENTYPE, <<5, 0>>}}, + {asn1_OPENTYPE, ?DER_NULL}}, der_encode('RSAPrivateKey', PrivKey), asn1_NOVALUE}); pem_entry_encode('PrivateKeyInfo', #'ECPrivateKey'{parameters = Parameters} = PrivKey) -> pem_entry_encode('PrivateKeyInfo', -- cgit v1.2.3