2
0

Ssl.hx 355 B

123456789101112131415
  1. package mbedtls;
  2. import mbedtls.X509Crt;
  3. import haxe.io.Bytes;
  4. extern class Ssl {
  5. function new():Void;
  6. function get_peer_cert():Null<X509Crt>;
  7. function handshake():Int;
  8. function read(buf:Bytes, pos:Int, len:Int):Int;
  9. function set_hostname(hostname:String):Int;
  10. function setup(conf:Config):Int;
  11. function write(buf:Bytes, pos:Int, len:Int):Int;
  12. }