3 This file is part of mldonkey.
5 mldonkey is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 mldonkey is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with mldonkey; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 val create_key
: unit -> string
22 val load_key
: string -> string
23 val create_signature
: string -> int -> int64
-> int -> int64
-> string
24 val verify_signature
: string -> int -> string -> int -> int64
-> int -> int64
-> bool
27 module SUI
: SUI
= struct
28 external create_key
: unit -> string = "ml_createKey"
29 external load_key
: string -> string = "ml_loadKey"
30 external create_signature
: string -> int -> int64
-> int -> int64
-> string = "ml_createSignature"
31 external verify_signature
: string -> int -> string -> int -> int64
-> int -> int64
-> bool = "ml_verifySignature_bytecode" "ml_verifySignature"
34 let ext_lprintf_nl msg verb
=
35 if !CommonOptions.verbose_unexpected_messages
|| not verb
then Printf2.lprintf_nl
("%s") msg
37 let _ = Callback.register
"ml_lprintf_nl" ext_lprintf_nl