summaryrefslogtreecommitdiff
path: root/module/sslsession.m
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-22 20:52:35 +0000
commit46439007cf417cbd9ac8049bb4122c890097a0fa (patch)
tree6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/sslsession.m
parent37da2899f40661e3e9631e497da8dc59b971cbd0 (diff)
20060303-partial
Diffstat (limited to 'module/sslsession.m')
-rw-r--r--module/sslsession.m27
1 files changed, 27 insertions, 0 deletions
diff --git a/module/sslsession.m b/module/sslsession.m
new file mode 100644
index 00000000..6afa3110
--- /dev/null
+++ b/module/sslsession.m
@@ -0,0 +1,27 @@
+SSLsession: module {
+
+ PATH: con "/dis/lib/crypt/sslsession.dis";
+
+ Session: adt {
+ session_id : array of byte; # [32]
+ peer : string;
+
+ connection_time : int;
+ version : array of byte; # [2]
+
+ suite : array of byte; # [2]
+ compression : byte;
+
+ master_secret : array of byte; # [48]
+ peer_certs : list of array of byte;
+
+ new: fn(peer: string, time: int, ver: array of byte): ref Session;
+ duplicate: fn(s: self ref Session): ref Session;
+ };
+
+ init: fn(): string;
+ add_session: fn(s: ref Session);
+ get_session_byid: fn(session_id: array of byte): ref Session;
+ get_session_byname: fn(peer: string): ref Session;
+ set_timeout: fn(t: int);
+};