add localcert for Dtls

This commit is contained in:
Ludovic Chenut 2023-11-28 16:20:43 +01:00
parent de12f43ef9
commit ec51a19880
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C
1 changed files with 4 additions and 1 deletions

View File

@ -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,