extmod/modussl_mbedtls.c: Add ussl.getpeercert() method.

Behaviour is as per CPython but only the binary form is implemented here.
A test is included.
This commit is contained in:
Eric Poulsen
2017-08-15 07:49:11 -07:00
committed by Damien George
parent ace9fb5405
commit d5191edf7f
3 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1 @@
<class 'bytes'> True