Update Files
This commit is contained in:
10
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Config.hx
Normal file
10
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Config.hx
Normal file
@ -0,0 +1,10 @@
|
||||
package mbedtls;
|
||||
|
||||
extern class Config {
|
||||
function new():Void;
|
||||
|
||||
function authmode(authmode:SslAuthmode):Void;
|
||||
function ca_chain(ca_chain:X509Crt):Void;
|
||||
function defaults(endpoint:SslEndpoint, transport:SslTransport, preset:SslPreset):Int;
|
||||
function rng<T>(p_rng:T):Void;
|
||||
}
|
10
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/CtrDrbg.hx
Normal file
10
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/CtrDrbg.hx
Normal file
@ -0,0 +1,10 @@
|
||||
package mbedtls;
|
||||
|
||||
import haxe.io.Bytes;
|
||||
|
||||
extern class CtrDrbg {
|
||||
function new():Void;
|
||||
|
||||
function random(output:Bytes, output_len:Int):Int;
|
||||
function seed(entropy:Entropy, ?custom:String):Int;
|
||||
}
|
5
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Entropy.hx
Normal file
5
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Entropy.hx
Normal file
@ -0,0 +1,5 @@
|
||||
package mbedtls;
|
||||
|
||||
extern class Entropy {
|
||||
function new():Void;
|
||||
}
|
5
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Error.hx
Normal file
5
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Error.hx
Normal file
@ -0,0 +1,5 @@
|
||||
package mbedtls;
|
||||
|
||||
class Error {
|
||||
extern static public function strerror(code:Int):String;
|
||||
}
|
12
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/PkContext.hx
Normal file
12
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/PkContext.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package mbedtls;
|
||||
|
||||
import haxe.io.Bytes;
|
||||
|
||||
extern class PkContext {
|
||||
function new():Void;
|
||||
|
||||
function parse_key(key:Bytes, ?pwd:String):Int;
|
||||
function parse_keyfile(path:String, ?password:String):Int;
|
||||
function parse_public_key(key:Bytes):Int;
|
||||
function parse_public_keyfile(path:String):Int;
|
||||
}
|
15
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Ssl.hx
Normal file
15
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/Ssl.hx
Normal file
@ -0,0 +1,15 @@
|
||||
package mbedtls;
|
||||
|
||||
import mbedtls.X509Crt;
|
||||
import haxe.io.Bytes;
|
||||
|
||||
extern class Ssl {
|
||||
function new():Void;
|
||||
|
||||
function get_peer_cert():Null<X509Crt>;
|
||||
function handshake():Int;
|
||||
function read(buf:Bytes, pos:Int, len:Int):Int;
|
||||
function set_hostname(hostname:String):Int;
|
||||
function setup(conf:Config):Int;
|
||||
function write(buf:Bytes, pos:Int, len:Int):Int;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package mbedtls;
|
||||
|
||||
@:native("mbedtls.SslAuthmode")
|
||||
extern enum abstract SslAuthmode(Int) {
|
||||
var SSL_VERIFY_NONE;
|
||||
var SSL_VERIFY_OPTIONAL;
|
||||
var SSL_VERIFY_REQUIRED;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package mbedtls;
|
||||
|
||||
@:native("mbedtls.SslEndpoint")
|
||||
extern enum abstract SslEndpoint(Int) {
|
||||
var SSL_IS_CLIENT;
|
||||
var SSL_IS_SERVER;
|
||||
}
|
7
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/SslPreset.hx
Normal file
7
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/SslPreset.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package mbedtls;
|
||||
|
||||
@:native("mbedtls.SslPreset")
|
||||
extern enum abstract SslPreset(Int) {
|
||||
var SSL_PRESET_DEFAULT;
|
||||
var SSL_PRESET_SUITEB;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package mbedtls;
|
||||
|
||||
@:native("mbedtls.SslTransport")
|
||||
extern enum abstract SslTransport(Int) {
|
||||
var SSL_TRANSPORT_STREAM;
|
||||
var SSL_TRANSPORT_DATAGRAM;
|
||||
}
|
12
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/X509Crt.hx
Normal file
12
Kha/Tools/linux_arm64/std/eval/_std/mbedtls/X509Crt.hx
Normal file
@ -0,0 +1,12 @@
|
||||
package mbedtls;
|
||||
|
||||
import haxe.io.Bytes;
|
||||
|
||||
extern class X509Crt {
|
||||
function new():Void;
|
||||
|
||||
function next():Null<X509Crt>;
|
||||
function parse(buf:Bytes):Int;
|
||||
function parse_file(path:String):Int;
|
||||
function parse_path(path:String):Int;
|
||||
}
|
Reference in New Issue
Block a user