Basic SSL connection going
[hcoop/domtool2.git] / src / openssl.sig
diff --git a/src/openssl.sig b/src/openssl.sig
new file mode 100644 (file)
index 0000000..750a4fa
--- /dev/null
@@ -0,0 +1,46 @@
+(* HCoop Domtool (http://hcoop.sourceforge.net/)
+ * Copyright (c) 2006, Adam Chlipala
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ *)
+
+(* OpenSSL *)
+
+signature OPENSSL = sig
+
+exception OpenSSL of string
+
+val ssl_err : string -> unit
+
+type context
+type bio
+type listener
+
+val readOne : bio -> string option
+val writeAll : bio * string -> unit
+
+val context : string * string * string -> context
+
+val connect : context * string -> bio
+val close : bio -> unit
+
+val listen : int * int -> listener
+val shutdown : listener -> unit
+
+val accept : context * listener -> bio option
+
+val peerCN : bio -> string
+
+end