diff options
author | Ingela Anderton Andin <[email protected]> | 2010-10-01 11:39:30 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2010-10-01 11:39:30 +0200 |
commit | 132e46f29297ab3de25b33bd52ddbad078900276 (patch) | |
tree | f9241b069e803936f80f5d90ec06a9a5ac946e55 /lib/ssl/src | |
parent | 800a07c5a386a79465ad33e5015ba20bad2ccc62 (diff) | |
parent | 9c6842dbbe45bdf1568f165cc135257c4addbe0e (diff) | |
download | otp-132e46f29297ab3de25b33bd52ddbad078900276.tar.gz otp-132e46f29297ab3de25b33bd52ddbad078900276.tar.bz2 otp-132e46f29297ab3de25b33bd52ddbad078900276.zip |
Merge branch 'maint-r14' into dev
Conflicts:
lib/public_key/src/pubkey_cert.erl
Diffstat (limited to 'lib/ssl/src')
-rw-r--r-- | lib/ssl/src/ssl.erl | 4 | ||||
-rw-r--r-- | lib/ssl/src/ssl_certificate.erl | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl index c13dee96f1..ef94750d02 100644 --- a/lib/ssl/src/ssl.erl +++ b/lib/ssl/src/ssl.erl @@ -627,6 +627,8 @@ handle_options(Opts0, _Role) -> (_,{extension, _}, UserState) -> {unknown, UserState}; (_, valid, UserState) -> + {valid, UserState}; + (_, valid_peer, UserState) -> {valid, UserState} end, []}, @@ -727,6 +729,8 @@ validate_option(verify_fun, Fun) when is_function(Fun) -> (_,{extension, _}, UserState) -> {unknown, UserState}; (_, valid, UserState) -> + {valid, UserState}; + (_, valid_peer, UserState) -> {valid, UserState} end, Fun}; validate_option(verify_fun, {Fun, _} = Value) when is_function(Fun) -> diff --git a/lib/ssl/src/ssl_certificate.erl b/lib/ssl/src/ssl_certificate.erl index 3c7ce837e4..5571fb01f6 100644 --- a/lib/ssl/src/ssl_certificate.erl +++ b/lib/ssl/src/ssl_certificate.erl @@ -132,6 +132,8 @@ validate_extension(_, {bad_cert, _} = Reason, _) -> validate_extension(_, {extension, _}, Role) -> {unknown, Role}; validate_extension(_, valid, Role) -> + {valid, Role}; +validate_extension(_, valid_peer, Role) -> {valid, Role}. %%-------------------------------------------------------------------- |