~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
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
%% Purpose: Record and constant defenitions for the SSL-record protocol
115
117
-define(MAX_COMPRESSED_LENGTH, (?MAX_PLAIN_TEXT_LENGTH+1024)).
116
118
-define(MAX_CIPHER_TEXT_LENGTH, (?MAX_PLAIN_TEXT_LENGTH+2048)).
117
119
 
118
 
-record(protocol_version, {
119
 
          major,  % unit 8
120
 
          minor   % unit 8
121
 
         }).
 
120
%% -record(protocol_version, {
 
121
%%        major,  % unit 8
 
122
%%        minor   % unit 8
 
123
%%       }).
122
124
 
123
125
-define(LOWEST_MAJOR_SUPPORTED_VERSION, 3).
124
126
        
125
 
-record(tls_plain_text, {
126
 
          type, 
127
 
          version,   % #protocol_version{} 
128
 
          length,    % unit 16  
129
 
          fragment   % opaque  
130
 
         }).
131
 
 
132
 
-record(tls_compressed, {
 
127
-record(ssl_tls, {   %% From inet driver
 
128
          port,
133
129
          type,
134
 
          version,
135
 
          length,    % unit 16  
136
 
          fragment   % opaque  
 
130
          version, 
 
131
          fragment
137
132
         }).
138
133
 
139
 
-record(tls_cipher_text, {
140
 
          type,
141
 
          version,
142
 
          length,
143
 
          cipher,
144
 
          fragment
145
 
         }).
 
134
%% -record(tls_plain_text, {
 
135
%%        type, 
 
136
%%        version,   % #protocol_version{} 
 
137
%%        length,    % unit 16  
 
138
%%        fragment   % opaque  
 
139
%%       }).
 
140
 
 
141
%% -record(tls_compressed, {
 
142
%%        type,
 
143
%%        version,
 
144
%%        length,    % unit 16  
 
145
%%        fragment   % opaque  
 
146
%%       }).
 
147
 
 
148
%% -record(tls_cipher_text, {
 
149
%%           type,
 
150
%%           version,
 
151
%%           length,
 
152
%%           cipher,
 
153
%%           fragment
 
154
%%          }).
146
155
 
147
156
-record(generic_stream_cipher, {
148
157
          content,  % opaque content[TLSCompressed.length];