~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/ssl/src/ssl_internal.hrl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%% ``The contents of this file are subject to the Erlang Public License,
 
1
%%<copyright>
 
2
%% <year>2007-2008</year>
 
3
%% <holder>Ericsson AB, All Rights Reserved</holder>
 
4
%%</copyright>
 
5
%%<legalnotice>
 
6
%% The contents of this file are subject to the Erlang Public License,
2
7
%% Version 1.1, (the "License"); you may not use this file except in
3
8
%% compliance with the License. You should have received a copy of the
4
9
%% Erlang Public License along with this software. If not, it can be
5
 
%% retrieved via the world wide web at http://www.erlang.org/.
6
 
%% 
 
10
%% retrieved online at http://www.erlang.org/.
 
11
%%
7
12
%% Software distributed under the License is distributed on an "AS IS"
8
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
14
%% the License for the specific language governing rights and limitations
10
15
%% under the License.
11
 
%% 
12
 
%% The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
 
%% Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
 
%% AB. All Rights Reserved.''
15
 
%% 
16
 
%%     $Id$
 
16
%%
 
17
%% The Initial Developer of the Original Code is Ericsson AB.
 
18
%%</legalnotice>
17
19
%%
18
20
 
19
21
 
45
47
-define(TRUE, 0).
46
48
-define(FALSE, 1).
47
49
 
48
 
-define(DEFAULT_SUPPORTED_VERSIONS, [sslv3]). % TODO: This is temporary
 
50
-define(DEFAULT_SUPPORTED_VERSIONS, [tlsv1, sslv3]). % TODO: This is temporary
49
51
%-define(DEFAULT_SUPPORTED_VERSIONS, ['tlsv1.1', tlsv1, sslv3]).
50
52
 
51
53
-record(ssl_options, {
52
 
          verify,     % 
53
 
          depth,      %
54
 
          certfile,   %
55
 
          keyfile,    %
56
 
          key,        %
57
 
          password,   %
58
 
          cacertfile, %
59
 
          ciphers,    %
60
 
          reuse_sessions, %
61
 
          debug       %
 
54
          versions,   % 'tlsv1.1' | tlsv1 | sslv3
 
55
          verify,     %   verify_none | verify_peer
 
56
          verify_fun, % fun(CertVerifyErrors) -> boolean()
 
57
          fail_if_no_peer_cert, % boolean()
 
58
          verify_client_once,  % boolean()
 
59
          depth,      % integer()
 
60
          certfile,   % file()
 
61
          keyfile,    % file()
 
62
          key,        % 
 
63
          password,   % 
 
64
          cacertfile, % file()
 
65
          ciphers,    % 
 
66
          %% Local policy for the server if it want's to reuse the session
 
67
          %% or not. Defaluts to allways returning true.
 
68
          %% fun(SessionId, PeerCert, Compression, CipherSuite) -> boolean()
 
69
          reuse_session,  
 
70
          %% If false sessions will never be reused, if true they
 
71
          %% will be reused if possible.
 
72
          reuse_sessions, % boolean()
 
73
          debug           %
62
74
          }).
63
75
 
64
76
-record(socket_options, {