W3cubDocs

/Haxe C++

NativeSsl

package cpp

@:buildXml("<include name=\"${HXCPP}/src/hx/libs/ssl/Build.xml\"/>") Available on cpp

Static methods

@:extern @:native("_hx_ssl_cert_add_der") static cert_add_der (cert:Dynamic, data:BytesData):Dynamic

@:extern @:native("_hx_ssl_cert_add_pem") static cert_add_pem (cert:Dynamic, data:String):Dynamic

@:extern @:native("_hx_ssl_cert_get_altnames") static cert_get_altnames (cert:Dynamic):Array<String>

@:extern @:native("_hx_ssl_cert_get_issuer") static cert_get_issuer (cert:Dynamic, field:String):String

@:extern @:native("_hx_ssl_cert_get_next") static cert_get_next (cert:Dynamic):Dynamic

@:extern @:native("_hx_ssl_cert_get_notafter") static cert_get_notafter (cert:Dynamic):Array<Int>

@:extern @:native("_hx_ssl_cert_get_notbefore") static cert_get_notbefore (cert:Dynamic):Array<Int>

@:extern @:native("_hx_ssl_cert_get_subject") static cert_get_subject (cert:Dynamic, field:String):String

@:extern @:native("_hx_ssl_cert_load_defaults") static cert_load_defaults ():Dynamic

@:extern @:native("_hx_ssl_cert_load_file") static cert_load_file (file:String):Dynamic

@:extern @:native("_hx_ssl_cert_load_path") static cert_load_path (path:String):Dynamic

@:extern @:native("_hx_ssl_conf_close") static conf_close (conf:Dynamic):Void

@:extern @:native("_hx_ssl_conf_new") static conf_new (server:Bool):Dynamic

@:extern @:native("_hx_ssl_conf_set_ca") static conf_set_ca (conf:Dynamic, cert:Dynamic):Void

@:extern @:native("_hx_ssl_conf_set_cert") static conf_set_cert (conf:Dynamic, cert:Dynamic, pkey:Dynamic):Void

@:extern @:native("_hx_ssl_conf_set_servername_callback") static conf_set_servername_callback (conf:Dynamic, cb:Dynamic):Void

@:extern @:native("_hx_ssl_conf_set_verify") static conf_set_verify (conf:Dynamic, mode:Int):Void

@:extern @:native("_hx_ssl_dgst_make") static dgst_make (data:BytesData, alg:String):BytesData

@:extern @:native("_hx_ssl_dgst_sign") static dgst_sign (data:BytesData, key:Dynamic, alg:String):BytesData

@:extern @:native("_hx_ssl_dgst_verify") static dgst_verify (data:BytesData, sign:BytesData, key:Dynamic, alg:String):Bool

@:extern @:native("_hx_ssl_init") static init ():Void

@:extern @:native("_hx_ssl_key_from_der") static key_from_der (data:BytesData, pub:Bool):Dynamic

@:extern @:native("_hx_ssl_key_from_pem") static key_from_pem (data:String, pub:Bool, pass:String):Dynamic

@:extern @:native("_hx_ssl_close") static ssl_close (ctx:Dynamic):Void

@:extern @:native("_hx_ssl_get_peer_certificate") static ssl_get_peer_certificate (ctx:Dynamic):Dynamic

@:extern @:native("_hx_ssl_get_verify_result") static ssl_get_verify_result (ctx:Dynamic):Bool

@:extern @:native("_hx_ssl_handshake") static ssl_handshake (ctx:Dynamic):Void

@:extern @:native("_hx_ssl_new") static ssl_new (conf:Dynamic):Dynamic

@:extern @:native("_hx_ssl_read") static ssl_read (ctx:Dynamic):BytesData

@:extern @:native("_hx_ssl_recv") static ssl_recv (ctx:Dynamic, buf:BytesData, p:Int, l:Int):Int

@:extern @:native("_hx_ssl_recv_char") static ssl_recv_char (ctx:Dynamic):Int

@:extern @:native("_hx_ssl_send") static ssl_send (ctx:Dynamic, buf:BytesData, p:Int, l:Int):Int

@:extern @:native("_hx_ssl_send_char") static ssl_send_char (ctx:Dynamic, char:Int):Void

@:extern @:native("_hx_ssl_set_hostname") static ssl_set_hostname (ctx:Dynamic, hostname:String):Void

@:extern @:native("_hx_ssl_set_socket") static ssl_set_socket (ctx:Dynamic, socket:Dynamic):Void

@:extern @:native("_hx_ssl_write") static ssl_write (ctx:Dynamic, data:BytesData):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cpp/NativeSsl.html