shithub: drawterm

Download patch

ref: 333472c8c87c11eefb62cb1d5eab4472e5a8d2a9
parent: 298b974eacaa5d338401e7f06593ab72f518a30c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 10 20:29:59 EST 2017

libsec: update tlshand from 9front...

--- a/libsec/tlshand.c
+++ b/libsec/tlshand.c
@@ -2821,7 +2821,7 @@
 		rsapubfree(rsapk);
 		break;
 	case 0x03:
-		ecpk = X509toECpub(cert->data, cert->len, &dom);
+		ecpk = X509toECpub(cert->data, cert->len, nil, 0, &dom);
 		if(ecpk == nil)
 			return "bad certificate";
 		err = X509ecdsaverifydigest(sig->data, sig->len, digest, digestlen, &dom, ecpk);