diff options
author | Ingela Anderton Andin <[email protected]> | 2017-10-05 16:13:02 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-10-05 16:33:03 +0200 |
commit | ddbf02af2391710921a73c2144a4c9f0a369a35c (patch) | |
tree | 28fd4219a41c5b013784c73a8c57b7f27ac35030 /lib/ssl/src/ssl_crl_cache.erl | |
parent | 5dfa52ea77f6d71472b3824c4e7782ff61e4fa8c (diff) | |
download | otp-ddbf02af2391710921a73c2144a4c9f0a369a35c.tar.gz otp-ddbf02af2391710921a73c2144a4c9f0a369a35c.tar.bz2 otp-ddbf02af2391710921a73c2144a4c9f0a369a35c.zip |
ssl: Use new string functions
The functions are not performance critical. Will be used
when errors occurs, CRL data base is managed or legacy OpenSSL names
are used for ciphers.
Diffstat (limited to 'lib/ssl/src/ssl_crl_cache.erl')
-rw-r--r-- | lib/ssl/src/ssl_crl_cache.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssl/src/ssl_crl_cache.erl b/lib/ssl/src/ssl_crl_cache.erl index 86c0207515..8817b0c884 100644 --- a/lib/ssl/src/ssl_crl_cache.erl +++ b/lib/ssl/src/ssl_crl_cache.erl @@ -94,7 +94,7 @@ delete({der, CRLs}) -> delete(URI) -> case http_uri:parse(URI) of {ok, {http, _, _ , _, Path,_}} -> - ssl_manager:delete_crls(string:strip(Path, left, $/)); + ssl_manager:delete_crls(string:trim(Path, leading, "/")); _ -> {error, {only_http_distribution_points_supported, URI}} end. @@ -105,7 +105,7 @@ delete(URI) -> do_insert(URI, CRLs) -> case http_uri:parse(URI) of {ok, {http, _, _ , _, Path,_}} -> - ssl_manager:insert_crls(string:strip(Path, left, $/), CRLs); + ssl_manager:insert_crls(string:trim(Path, leading, "/"), CRLs); _ -> {error, {only_http_distribution_points_supported, URI}} end. @@ -162,7 +162,7 @@ cache_lookup(_, undefined) -> []; cache_lookup(URL, {{Cache, _}, _}) -> {ok, {_, _, _ , _, Path,_}} = http_uri:parse(URL), - case ssl_pkix_db:lookup(string:strip(Path, left, $/), Cache) of + case ssl_pkix_db:lookup(string:trim(Path, leading, "/"), Cache) of undefined -> []; CRLs -> |