tls_ctx was definded before TlsContext

pull/1698/head
Joe Conigliaro 2019-08-21 18:37:45 +10:00 committed by Alexander Medvednikov
parent 453f3020c3
commit e35ef3b83e
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,6 @@ DWORD protocol = 0;
ALG_ID aid_key_exch = 0;
struct TlsContext tls_ctx;
// TODO: joe-c
// socket / tls ctx
struct TlsContext {
@ -32,6 +31,8 @@ struct TlsContext {
PCCERT_CONTEXT p_pemote_cert_context;
};
struct TlsContext tls_ctx;
struct TlsContext new_tls_context() {
return (struct TlsContext) {
.cert_store = NULL,