We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WolfSSL.Get_Error
1 parent a0c8efd commit cdbad34Copy full SHA for cdbad34
1 file changed
wrapper/Ada/tls_server.adb
@@ -346,6 +346,14 @@ package body Tls_Server with SPARK_Mode is
346
WolfSSL.Create_WolfSSL (Context => Ctx, Ssl => Ssl);
347
if not WolfSSL.Is_Valid (Ssl) then
348
Put_Line ("ERROR: failed to create WOLFSSL object.");
349
+ declare
350
+ Error_Message : constant WolfSSL.Error_Message :=
351
+ WolfSSL.Error (WolfSSL.Get_Error (Ssl, Result));
352
+ begin
353
+ if Result = Success then
354
+ Put_Line (Error_Message.Text (1 .. Error_Message.Last));
355
+ end if;
356
+ end;
357
SPARK_Sockets.Close_Socket (L);
358
359
if not DTLS then
0 commit comments