1
1
-- ----------------------------------------------------------------------------
2
2
-- Ada Web Server --
3
3
-- --
4
- -- Copyright (C) 2006-2018 , AdaCore --
4
+ -- Copyright (C) 2006-2021 , AdaCore --
5
5
-- --
6
6
-- This library is free software; you can redistribute it and/or modify --
7
7
-- it under terms of the GNU General Public License as published by the --
@@ -69,6 +69,24 @@ package body AWS.Net.SSL is
69
69
null ;
70
70
end Add_Host_Certificate ;
71
71
72
+ -- ------------
73
+ -- ALPN_Get --
74
+ -- ------------
75
+
76
+ function ALPN_Get (Socket : Socket_Type) return String is
77
+ begin
78
+ return " " ;
79
+ end ALPN_Get ;
80
+
81
+ -- ------------
82
+ -- ALPN_Set --
83
+ -- ------------
84
+
85
+ procedure ALPN_Set (Config : SSL.Config; Protocols : SV.Vector) is
86
+ begin
87
+ null ;
88
+ end ALPN_Set ;
89
+
72
90
-- ----------------------
73
91
-- Cipher_Description --
74
92
-- ----------------------
@@ -148,15 +166,16 @@ package body AWS.Net.SSL is
148
166
procedure Initialize
149
167
(Config : in out SSL.Config;
150
168
Certificate_Filename : String;
151
- Security_Mode : Method := TLS;
152
- Priorities : String := " " ;
153
- Ticket_Support : Boolean := False;
154
- Key_Filename : String := " " ;
155
- Exchange_Certificate : Boolean := False;
156
- Certificate_Required : Boolean := False;
157
- Trusted_CA_Filename : String := " " ;
158
- CRL_Filename : String := " " ;
159
- Session_Cache_Size : Natural := 16#4000# ) is
169
+ Security_Mode : Method := TLS;
170
+ Priorities : String := " " ;
171
+ Ticket_Support : Boolean := False;
172
+ Key_Filename : String := " " ;
173
+ Exchange_Certificate : Boolean := False;
174
+ Certificate_Required : Boolean := False;
175
+ Trusted_CA_Filename : String := " " ;
176
+ CRL_Filename : String := " " ;
177
+ Session_Cache_Size : Natural := 16#4000# ;
178
+ ALPN : SV.Vector := SV.Empty_Vector) is
160
179
begin
161
180
raise Program_Error with Error_Message;
162
181
end Initialize ;
@@ -167,15 +186,16 @@ package body AWS.Net.SSL is
167
186
168
187
procedure Initialize_Default_Config
169
188
(Certificate_Filename : String;
170
- Security_Mode : Method := TLS;
171
- Priorities : String := " " ;
172
- Ticket_Support : Boolean := False;
173
- Key_Filename : String := " " ;
174
- Exchange_Certificate : Boolean := False;
175
- Certificate_Required : Boolean := False;
176
- Trusted_CA_Filename : String := " " ;
177
- CRL_Filename : String := " " ;
178
- Session_Cache_Size : Natural := 16#4000# ) is
189
+ Security_Mode : Method := TLS;
190
+ Priorities : String := " " ;
191
+ Ticket_Support : Boolean := False;
192
+ Key_Filename : String := " " ;
193
+ Exchange_Certificate : Boolean := False;
194
+ Certificate_Required : Boolean := False;
195
+ Trusted_CA_Filename : String := " " ;
196
+ CRL_Filename : String := " " ;
197
+ Session_Cache_Size : Natural := 16#4000# ;
198
+ ALPN : SV.Vector := SV.Empty_Vector) is
179
199
begin
180
200
raise Program_Error with Error_Message;
181
201
end Initialize_Default_Config ;
0 commit comments