From ec51a19880f533d2f0afc9e79fa9894f81f25c40 Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Tue, 28 Nov 2023 16:20:43 +0100 Subject: [PATCH] add localcert for Dtls --- webrtc/dtls/dtls.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webrtc/dtls/dtls.nim b/webrtc/dtls/dtls.nim index 15a8a50..b6e1d60 100644 --- a/webrtc/dtls/dtls.nim +++ b/webrtc/dtls/dtls.nim @@ -196,7 +196,10 @@ proc serverHandshake(self: DtlsConn) {.async.} = proc remoteCertificate*(conn: DtlsConn): seq[byte] = conn.remoteCert -proc localCertificate*(self: DtlsConn): seq[byte] = +proc localCertificate*(conn: DtlsConn): seq[byte] = + conn.localCert + +proc localCertificate*(self: Dtls): seq[byte] = self.localCert proc verify(ctx: pointer, pcert: ptr mbedtls_x509_crt,