diff options
author | Fredrik Gustafsson <[email protected]> | 2012-11-13 16:19:18 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2012-11-15 14:02:00 +0100 |
commit | 689b6c5bacf0d7f89c7f3de028627753ad5a1438 (patch) | |
tree | b2d639311e8a1036340fab2dc9a3fdd747fb07ce /lib/public_key/src/public_key.erl | |
parent | 067aef311309ad751ddeb9c40169b25c0dd1b72c (diff) | |
download | otp-689b6c5bacf0d7f89c7f3de028627753ad5a1438.tar.gz otp-689b6c5bacf0d7f89c7f3de028627753ad5a1438.tar.bz2 otp-689b6c5bacf0d7f89c7f3de028627753ad5a1438.zip |
public_key: Added PKCS-10
Diffstat (limited to 'lib/public_key/src/public_key.erl')
-rw-r--r-- | lib/public_key/src/public_key.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl index d5df53e848..f7252d18a6 100644 --- a/lib/public_key/src/public_key.erl +++ b/lib/public_key/src/public_key.erl @@ -176,7 +176,9 @@ der_decode(Asn1Type, Der) when is_atom(Asn1Type), is_binary(Der) -> %% Description: Encodes a public key entity with asn1 DER encoding. %%-------------------------------------------------------------------- der_encode(Asn1Type, Entity) when (Asn1Type == 'PrivateKeyInfo') or - (Asn1Type == 'EncryptedPrivateKeyInfo') -> + (Asn1Type == 'EncryptedPrivateKeyInfo') or + (Asn1Type == 'CertificationRequest') + -> try {ok, Encoded} = 'PKCS-FRAME':encode(Asn1Type, Entity), iolist_to_binary(Encoded) |