Skip to content

Commit 5c9e815

Browse files
committed
Fix SSL dummy implementation
S507-051 Adds stubs for new routines from SSL API.
1 parent b80665e commit 5c9e815

File tree

1 file changed

+39
-19
lines changed

1 file changed

+39
-19
lines changed

config/ssl/aws-net-ssl__dummy.adb

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- Ada Web Server --
33
-- --
4-
-- Copyright (C) 2006-2018, AdaCore --
4+
-- Copyright (C) 2006-2021, AdaCore --
55
-- --
66
-- This library is free software; you can redistribute it and/or modify --
77
-- it under terms of the GNU General Public License as published by the --
@@ -69,6 +69,24 @@ package body AWS.Net.SSL is
6969
null;
7070
end Add_Host_Certificate;
7171

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+
7290
------------------------
7391
-- Cipher_Description --
7492
------------------------
@@ -148,15 +166,16 @@ package body AWS.Net.SSL is
148166
procedure Initialize
149167
(Config : in out SSL.Config;
150168
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
160179
begin
161180
raise Program_Error with Error_Message;
162181
end Initialize;
@@ -167,15 +186,16 @@ package body AWS.Net.SSL is
167186

168187
procedure Initialize_Default_Config
169188
(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
179199
begin
180200
raise Program_Error with Error_Message;
181201
end Initialize_Default_Config;

0 commit comments

Comments
 (0)