Skip to content

Commit

Permalink
Merge branch 'ia/ssl/dialyzer-specs' into maint
Browse files Browse the repository at this point in the history
* ia/ssl/dialyzer-specs:
  Corrected dialyzer specs and exported some dialyzer specs
  • Loading branch information
IngelaAndin committed Mar 28, 2012
2 parents 40db677 + 49acec1 commit e93c9db
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion lib/ssl/src/ssl.erl
@@ -1,7 +1,7 @@
%% %%
%% %CopyrightBegin% %% %CopyrightBegin%
%% %%
%% Copyright Ericsson AB 1999-2011. All Rights Reserved. %% Copyright Ericsson AB 1999-2012. All Rights Reserved.
%% %%
%% The contents of this file are subject to the Erlang Public License, %% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in %% Version 1.1, (the "License"); you may not use this file except in
Expand Down Expand Up @@ -40,6 +40,12 @@


-include_lib("public_key/include/public_key.hrl"). -include_lib("public_key/include/public_key.hrl").


%% Visible in API
-export_type([connect_option/0, listen_option/0, ssl_option/0, transport_option/0,
erl_cipher_suite/0, %% From ssl_cipher.hrl
tls_atom_version/0, %% From ssl_internal.hrl
prf_random/0]).

-record(config, {ssl, %% SSL parameters -record(config, {ssl, %% SSL parameters
inet_user, %% User set inet options inet_user, %% User set inet options
emulated, %% #socket_option{} emulated emulated, %% #socket_option{} emulated
Expand Down
4 changes: 2 additions & 2 deletions lib/ssl/src/ssl_certificate.erl
@@ -1,7 +1,7 @@
%% %%
%% %CopyrightBegin% %% %CopyrightBegin%
%% %%
%% Copyright Ericsson AB 2007-2011. All Rights Reserved. %% Copyright Ericsson AB 2007-2012. All Rights Reserved.
%% %%
%% The contents of this file are subject to the Erlang Public License, %% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in %% Version 1.1, (the "License"); you may not use this file except in
Expand Down Expand Up @@ -111,7 +111,7 @@ file_to_certificats(File, DbHandle) ->
{ok, List} = ssl_manager:cache_pem_file(File, DbHandle), {ok, List} = ssl_manager:cache_pem_file(File, DbHandle),
[Bin || {'Certificate', Bin, not_encrypted} <- List]. [Bin || {'Certificate', Bin, not_encrypted} <- List].
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
-spec validate_extension(term(), #'Extension'{} | {bad_cert, atom()} | valid, -spec validate_extension(term(), {extension, #'Extension'{}} | {bad_cert, atom()} | valid,
term()) -> {valid, term()} | term()) -> {valid, term()} |
{fail, tuple()} | {fail, tuple()} |
{unknown, term()}. {unknown, term()}.
Expand Down
4 changes: 2 additions & 2 deletions lib/ssl/src/ssl_connection.erl
@@ -1,7 +1,7 @@
%% %%
%% %CopyrightBegin% %% %CopyrightBegin%
%% %%
%% Copyright Ericsson AB 2007-2011. All Rights Reserved. %% Copyright Ericsson AB 2007-2012. All Rights Reserved.
%% %%
%% The contents of this file are subject to the Erlang Public License, %% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in %% Version 1.1, (the "License"); you may not use this file except in
Expand Down Expand Up @@ -276,7 +276,7 @@ renegotiation(ConnectionPid) ->


%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
-spec prf(pid(), binary() | 'master_secret', binary(), -spec prf(pid(), binary() | 'master_secret', binary(),
binary() | ssl:prf_secret(), non_neg_integer()) -> binary() | ssl:prf_random(), non_neg_integer()) ->
{ok, binary()} | {error, reason()} | {'EXIT', term()}. {ok, binary()} | {error, reason()} | {'EXIT', term()}.
%% %%
%% Description: use a ssl sessions TLS PRF to generate key material %% Description: use a ssl sessions TLS PRF to generate key material
Expand Down
2 changes: 1 addition & 1 deletion lib/ssl/src/ssl_handshake.erl
Expand Up @@ -543,7 +543,7 @@ server_key_exchange_hash(dhe_dss, Value) ->
crypto:sha(Value). crypto:sha(Value).


%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
-spec prf(tls_version(), binary(), binary(), binary(), non_neg_integer()) -> -spec prf(tls_version(), binary(), binary(), [binary()], non_neg_integer()) ->
{ok, binary()} | {error, undefined}. {ok, binary()} | {error, undefined}.
%% %%
%% Description: use the TLS PRF to generate key material %% Description: use the TLS PRF to generate key material
Expand Down

0 comments on commit e93c9db

Please sign in to comment.