mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Fix formatting issues and remove unused variable
This commit is contained in:
@@ -43,7 +43,7 @@ package body SPARK_Sockets is
|
|||||||
GNAT.Sockets.Create_Socket (S, Family, Mode);
|
GNAT.Sockets.Create_Socket (S, Family, Mode);
|
||||||
Socket := (Exists => True, Socket => S);
|
Socket := (Exists => True, Socket => S);
|
||||||
exception
|
exception
|
||||||
when E : others =>
|
when others =>
|
||||||
Socket := (Exists => False);
|
Socket := (Exists => False);
|
||||||
end Create_Socket;
|
end Create_Socket;
|
||||||
|
|
||||||
|
@@ -271,7 +271,6 @@ package body Tls_Client with SPARK_Mode is
|
|||||||
end if;
|
end if;
|
||||||
|
|
||||||
if DTLS then
|
if DTLS then
|
||||||
-- Set DTLS peer.
|
|
||||||
Result := WolfSSL.DTLS_Set_Peer(Ssl => Ssl,
|
Result := WolfSSL.DTLS_Set_Peer(Ssl => Ssl,
|
||||||
Address => A);
|
Address => A);
|
||||||
if Result /= Success then
|
if Result /= Success then
|
||||||
|
@@ -347,11 +347,7 @@ package body Tls_Server with SPARK_Mode is
|
|||||||
|
|
||||||
Result := WolfSSL.Shutdown (Ssl);
|
Result := WolfSSL.Shutdown (Ssl);
|
||||||
|
|
||||||
if DTLS then
|
exit when DTLS or Result = Success;
|
||||||
exit;
|
|
||||||
end if;
|
|
||||||
|
|
||||||
exit when Result = Success;
|
|
||||||
delay 0.001; -- Delay is expressed in seconds.
|
delay 0.001; -- Delay is expressed in seconds.
|
||||||
|
|
||||||
end loop;
|
end loop;
|
||||||
|
Reference in New Issue
Block a user