aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_certificate.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2010-09-15 14:34:58 +0200
committerIngela Anderton Andin <[email protected]>2010-09-15 14:34:58 +0200
commit6a933540f24e76c05cc652acbf2aa92b9ab76d58 (patch)
tree09109c4569002173d90faf5134bf3f9e9a0ed174 /lib/ssl/src/ssl_certificate.erl
parent3f336f1b6f2854618146e882b04e8cbc50d1111e (diff)
downloadotp-6a933540f24e76c05cc652acbf2aa92b9ab76d58.tar.gz
otp-6a933540f24e76c05cc652acbf2aa92b9ab76d58.tar.bz2
otp-6a933540f24e76c05cc652acbf2aa92b9ab76d58.zip
Corrected and added dialyzer specs
Diffstat (limited to 'lib/ssl/src/ssl_certificate.erl')
-rw-r--r--lib/ssl/src/ssl_certificate.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ssl/src/ssl_certificate.erl b/lib/ssl/src/ssl_certificate.erl
index 206024315e..d2ab21657c 100644
--- a/lib/ssl/src/ssl_certificate.erl
+++ b/lib/ssl/src/ssl_certificate.erl
@@ -110,9 +110,10 @@ file_to_certificats(File) ->
{ok, List} = ssl_manager:cache_pem_file(File),
[Bin || {'Certificate', Bin, not_encrypted} <- List].
%%--------------------------------------------------------------------
--spec validate_extension(term(), #'Extension'{}, term()) -> {valid, term()} |
- {fail, tuple()} |
- {unknown, term()}.
+-spec validate_extension(term(), #'Extension'{} | {bad_cert, atom()} | valid,
+ term()) -> {valid, term()} |
+ {fail, tuple()} |
+ {unknown, term()}.
%%
%% Description: Validates ssl/tls specific extensions
%%--------------------------------------------------------------------