22-- Secure Sockets Layer --
33-- Binding to OpenSSL library --
44-- --
5- -- Copyright (C) 2000-2006 --
6- -- AdaCore --
5+ -- Copyright (C) 2000-2008, AdaCore --
76-- --
87-- This library is free software; you can redistribute it and/or modify --
98-- it under the terms of the GNU General Public License as published by --
@@ -78,7 +77,7 @@ package SSL.Thin is
7877 References : int;
7978 Num_Read : unsigned_long;
8079 Num_Write : unsigned_long;
81- -- CRYPTO_EX_DATA ex_data; -- Do not need to translete it.
80+ -- CRYPTO_EX_DATA ex_data; -- Do not need to translete it
8281 end record ;
8382
8483 subtype SSL_Method is Pointer;
@@ -265,13 +264,15 @@ package SSL.Thin is
265264
266265 function CRYPTO_num_locks return Natural;
267266
268- procedure CRYPTO_set_id_callback (Id_Function : Pointer);
269- procedure CRYPTO_set_locking_callback (Locking_Function : Pointer);
267+ procedure CRYPTO_set_id_callback (Id_Function : in Pointer);
268+ procedure CRYPTO_set_locking_callback (Locking_Function : in Pointer);
270269 function CRYPTO_get_locking_callback return Pointer;
271270
272- procedure CRYPTO_set_dynlock_create_callback (Create_Function : Pointer);
273- procedure CRYPTO_set_dynlock_lock_callback (Lock_Function : Pointer);
274- procedure CRYPTO_set_dynlock_destroy_callback (Destroy_Function : Pointer);
271+ procedure CRYPTO_set_dynlock_create_callback
272+ (Create_Function : in Pointer);
273+ procedure CRYPTO_set_dynlock_lock_callback (Lock_Function : in Pointer);
274+ procedure CRYPTO_set_dynlock_destroy_callback
275+ (Destroy_Function : in Pointer);
275276
276277 function CRYPTO_get_dynlock_create_callback return Pointer;
277278 function CRYPTO_get_dynlock_lock_callback return Pointer;
@@ -346,7 +347,7 @@ package SSL.Thin is
346347
347348 function SSL_set_fd (S : in SSL_Handle; Fd : in int) return int;
348349
349- procedure SSL_set_bio (SSL : in SSL_Handle; RBIO, WBIO : BIO_Access);
350+ procedure SSL_set_bio (SSL : in SSL_Handle; RBIO, WBIO : in BIO_Access);
350351
351352 function SSL_get_rbio (SSL : in SSL_Handle) return BIO_Access;
352353 function SSL_get_wbio (SSL : in SSL_Handle) return BIO_Access;
@@ -485,12 +486,12 @@ package SSL.Thin is
485486 -- BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)
486487
487488 function BIO_ctrl
488- (Bp : in BIO_Access; Cmd : in int; Larg : in long; Parg : Pointer)
489+ (Bp : in BIO_Access; Cmd : in int; Larg : in long; Parg : in Pointer)
489490 return long;
490491 -- BIO_pending(b) = (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
491492
492493 procedure BIO_ctrl
493- (Bp : in BIO_Access; Cmd : in int; Larg : in long; Parg : Pointer);
494+ (Bp : in BIO_Access; Cmd : in int; Larg : in long; Parg : in Pointer);
494495 -- BIO_get_fd(b,c) = BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c)
495496 -- BIO_set_mem_eof_return(b,v)
496497 -- = BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)
@@ -505,15 +506,15 @@ package SSL.Thin is
505506 (bio1 : access BIO_Access; writebuf1 : in size_t;
506507 bio2 : access BIO_Access; writebuf2 : in size_t) return int;
507508
508- function BIO_nread0 (BIO : BIO_Access; Buf : Pointer) return int;
509+ function BIO_nread0 (BIO : in BIO_Access; Buf : in Pointer) return int;
509510 function BIO_nread
510- (BIO : BIO_Access; Buf : Pointer; Num : in int) return int;
511- -- Buf is the address of the buffer address.
511+ (BIO : in BIO_Access; Buf : in Pointer; Num : in int) return int;
512+ -- Buf is the address of the buffer address
512513
513- function BIO_nwrite0 (BIO : BIO_Access; Buf : Pointer) return int;
514+ function BIO_nwrite0 (BIO : in BIO_Access; Buf : in Pointer) return int;
514515 function BIO_nwrite
515- (BIO : BIO_Access; Buf : Pointer; Num : in int) return int;
516- -- Buf is the address of the buffer address.
516+ (BIO : in BIO_Access; Buf : in Pointer; Num : in int) return int;
517+ -- Buf is the address of the buffer address
517518
518519 function BIO_free (BIO : in BIO_Access) return int;
519520 procedure BIO_free (BIO : in BIO_Access);
0 commit comments