aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_key
diff options
context:
space:
mode:
authorMaxim Fedorov <[email protected]>2018-05-15 09:02:01 -0700
committerMaxim Fedorov <[email protected]>2018-05-21 16:46:56 -0700
commit26c3c3b6496c40f28b59fdbb11351c1830d090b9 (patch)
treea0ca63a99f83acbfe2b185dca383897f30d7389c /lib/public_key
parent9539125a8ee97855e7cca4a8060cbf91957d0d98 (diff)
downloadotp-26c3c3b6496c40f28b59fdbb11351c1830d090b9.tar.gz
otp-26c3c3b6496c40f28b59fdbb11351c1830d090b9.tar.bz2
otp-26c3c3b6496c40f28b59fdbb11351c1830d090b9.zip
Use DER_NULL macro instead or <<5,0>>
Diffstat (limited to 'lib/public_key')
-rw-r--r--lib/public_key/src/public_key.erl2
1 files changed, 1 insertions, 1 deletions
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',