diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2021-04-20 01:19:38 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2021-04-20 01:19:38 +0300 |
| commit | 60a9a899401a4c2522b0a1395996d64ba2949bb2 (patch) | |
| tree | 6eb9cb7fefc7e3f70508c43af3073cc47834880c | |
| parent | 73eb9b56ecf872d3dd8cbffbbc339776df7678ba (diff) | |
| download | rabbitmq-server-git-60a9a899401a4c2522b0a1395996d64ba2949bb2.tar.gz | |
Allow for more ASN.1 string (sub)types
| -rw-r--r-- | deps/rabbit_common/src/rabbit_cert_info.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/rabbit_common/src/rabbit_cert_info.erl b/deps/rabbit_common/src/rabbit_cert_info.erl index 5688fa215c..537915ca44 100644 --- a/deps/rabbit_common/src/rabbit_cert_info.erl +++ b/deps/rabbit_common/src/rabbit_cert_info.erl @@ -114,8 +114,8 @@ sanitize_other_name(Bin) when is_binary(Bin) -> %% but ASN.1 decoding functions in OTP only offer so much and SAN values %% are expected to be "string-like" by RabbitMQ case 'OTP-PUB-KEY':decode('DirectoryString', Bin) of - {ok, {utf8String, Val}} -> Val; - Other -> Other + {ok, {_, Val}} -> Val; + Other -> Other end. %% Format and rdnSequence as a RFC4514 subject string. |
