Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View 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;
}

View 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;
}

View File

@ -0,0 +1,5 @@
package mbedtls;
extern class Entropy {
function new():Void;
}

View File

@ -0,0 +1,5 @@
package mbedtls;
class Error {
extern static public function strerror(code:Int):String;
}

View 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;
}

View 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;
}

View File

@ -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;
}

View File

@ -0,0 +1,7 @@
package mbedtls;
@:native("mbedtls.SslEndpoint")
extern enum abstract SslEndpoint(Int) {
var SSL_IS_CLIENT;
var SSL_IS_SERVER;
}

View File

@ -0,0 +1,7 @@
package mbedtls;
@:native("mbedtls.SslPreset")
extern enum abstract SslPreset(Int) {
var SSL_PRESET_DEFAULT;
var SSL_PRESET_SUITEB;
}

View File

@ -0,0 +1,7 @@
package mbedtls;
@:native("mbedtls.SslTransport")
extern enum abstract SslTransport(Int) {
var SSL_TRANSPORT_STREAM;
var SSL_TRANSPORT_DATAGRAM;
}

View 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;
}