1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net.ssl: switch to mbedtls over openssl (#15841)

This commit is contained in:
spaceface
2022-09-22 15:50:34 +02:00
committed by GitHub
parent 44c3fcecd9
commit 5c716afb39
250 changed files with 172443 additions and 150 deletions

View File

@@ -1,7 +1,7 @@
module openssl
// ssl_error returns non error ssl code or error if unrecoverable and we should panic
pub fn ssl_error(ret int, ssl voidptr) ?SSLError {
fn ssl_error(ret int, ssl voidptr) ?SSLError {
res := C.SSL_get_error(ssl, ret)
match SSLError(res) {
.ssl_error_syscall {
@@ -16,7 +16,7 @@ pub fn ssl_error(ret int, ssl voidptr) ?SSLError {
}
}
pub enum SSLError {
enum SSLError {
ssl_error_none = 0 // SSL_ERROR_NONE
ssl_error_ssl = 1 // SSL_ERROR_SSL
ssl_error_want_read = 2 // SSL_ERROR_WANT_READ