aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-09-13 08:52:54 +0200
committerIngela Anderton Andin <[email protected]>2010-09-13 08:52:54 +0200
commit3f336f1b6f2854618146e882b04e8cbc50d1111e (patch)
treef275ef9c49054004e3504d7f9548474a78dcefa1 /lib/ssl/src/ssl.erl
parentf86c89a90a228eed9a58632cc0fb3372b210ec1a (diff)
parent6cced538abd4f8053c009b163efa8c6d568b9580 (diff)
downloadotp-3f336f1b6f2854618146e882b04e8cbc50d1111e.tar.gz
otp-3f336f1b6f2854618146e882b04e8cbc50d1111e.tar.bz2
otp-3f336f1b6f2854618146e882b04e8cbc50d1111e.zip
Merge branch 'ia/public_key-subject-alternative-name/OTP-8825' into dev
* ia/public_key-subject-alternative-name/OTP-8825: Improved certificate extension handling Add handling of SubjectAltName of type otherName
Diffstat (limited to 'lib/ssl/src/ssl.erl')
-rw-r--r--lib/ssl/src/ssl.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl
index cc01b35b64..12dffb413c 100644
--- a/lib/ssl/src/ssl.erl
+++ b/lib/ssl/src/ssl.erl
@@ -535,7 +535,9 @@ handle_options(Opts0, _Role) ->
(_,{bad_cert, _} = Reason, _) ->
{fail, Reason};
(_,{extension, _}, UserState) ->
- {unknown, UserState}
+ {unknown, UserState};
+ (_, valid, UserState) ->
+ {valid, UserState}
end, []},
UserFailIfNoPeerCert = handle_option(fail_if_no_peer_cert, Opts, false),
@@ -631,7 +633,9 @@ validate_option(verify_fun, Fun) when is_function(Fun) ->
{fail, Reason}
end;
(_,{extension, _}, UserState) ->
- {unknown, UserState}
+ {unknown, UserState};
+ (_, valid, UserState) ->
+ {valid, UserState}
end, Fun};
validate_option(verify_fun, {Fun, _} = Value) when is_function(Fun) ->
Value;