diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2013-04-09 18:04:52 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2013-04-09 18:04:52 +0100 |
| commit | 1d65afdd7fb0a97d7c304b0506f1b01b2c840686 (patch) | |
| tree | 886318d83bb0f6d1564b17c7c1ade3d170854f9b | |
| parent | cd871e1295b1c94ffe853417a0cc6dbb265bfdce (diff) | |
| download | rabbitmq-server-git-1d65afdd7fb0a97d7c304b0506f1b01b2c840686.tar.gz | |
Explain a bit more WTF we're doing.
| -rw-r--r-- | src/rabbit_ssl.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_ssl.erl b/src/rabbit_ssl.erl index 6859341301..8ef31fb663 100644 --- a/src/rabbit_ssl.erl +++ b/src/rabbit_ssl.erl @@ -216,6 +216,8 @@ format_asn1_value(V) when is_binary(V) -> %% type. That's probably wrong, so as a last ditch effort let's %% try manually decoding. This is certainly not guaranteed to work %% in all cases, but if we have a printableString we're in luck. + %% 'CommonName' is somewhat arbitrary - we need a valid type, and + %% der_decode/2 will do some type checking against it. try public_key:der_decode('CommonName', V) catch _:_ -> |
