mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
Made sure the relative paths for finding the certificates is correct.
This commit is contained in:
@@ -101,9 +101,9 @@ package body Tls_Client with SPARK_Mode is
|
|||||||
|
|
||||||
Any_Inet_Addr : Inet_Addr_Type renames SPARK_Sockets.Any_Inet_Addr;
|
Any_Inet_Addr : Inet_Addr_Type renames SPARK_Sockets.Any_Inet_Addr;
|
||||||
|
|
||||||
CERT_FILE : constant String := "../certs/client-cert.pem";
|
CERT_FILE : constant String := "../../../certs/client-cert.pem";
|
||||||
KEY_FILE : constant String := "../certs/client-key.pem";
|
KEY_FILE : constant String := "../../../certs/client-key.pem";
|
||||||
CA_FILE : constant String := "../certs/ca-cert.pem";
|
CA_FILE : constant String := "../../../certs/ca-cert.pem";
|
||||||
|
|
||||||
subtype Byte_Array is WolfSSL.Byte_Array;
|
subtype Byte_Array is WolfSSL.Byte_Array;
|
||||||
|
|
||||||
|
@@ -87,9 +87,9 @@ package body Tls_Server with SPARK_Mode is
|
|||||||
|
|
||||||
Any_Inet_Addr : Inet_Addr_Type renames SPARK_Sockets.Any_Inet_Addr;
|
Any_Inet_Addr : Inet_Addr_Type renames SPARK_Sockets.Any_Inet_Addr;
|
||||||
|
|
||||||
CERT_FILE : constant String := "../certs/server-cert.pem";
|
CERT_FILE : constant String := "../../../certs/server-cert.pem";
|
||||||
KEY_FILE : constant String := "../certs/server-key.pem";
|
KEY_FILE : constant String := "../../../certs/server-key.pem";
|
||||||
CA_FILE : constant String := "../certs/client-cert.pem";
|
CA_FILE : constant String := "../../../certs/client-cert.pem";
|
||||||
|
|
||||||
subtype Byte_Array is WolfSSL.Byte_Array;
|
subtype Byte_Array is WolfSSL.Byte_Array;
|
||||||
|
|
||||||
@@ -305,7 +305,11 @@ package body Tls_Server with SPARK_Mode is
|
|||||||
Put_Line ("ERROR: failed to write full response.");
|
Put_Line ("ERROR: failed to write full response.");
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
|
for I in 1 .. 3 loop
|
||||||
Result := WolfSSL.Shutdown (Ssl);
|
Result := WolfSSL.Shutdown (Ssl);
|
||||||
|
exit when Result = Success;
|
||||||
|
delay 0.001; -- Delay is expressed in seconds.
|
||||||
|
end loop;
|
||||||
if Result /= Success then
|
if Result /= Success then
|
||||||
Put_Line ("ERROR: Failed to shutdown WolfSSL context.");
|
Put_Line ("ERROR: Failed to shutdown WolfSSL context.");
|
||||||
end if;
|
end if;
|
||||||
|
Reference in New Issue
Block a user