Net-mbedTLS
view release on metacpan or search on metacpan
const char *name = mbedtls_ssl_get_version(&myconn->ssl);
RETVAL = name ? newSVpv(name, 0) : &PL_sv_undef;
OUTPUT:
RETVAL
void
peer_certificates (SV* peer_obj)
PPCODE:
if (GIMME_V != G_ARRAY) croak("List context only!");
xs_connection* myconn = (xs_connection*) SvPVX( SvRV(peer_obj) );
const mbedtls_x509_crt* crt = mbedtls_ssl_get_peer_cert(&myconn->ssl);
int count = 0;
while (crt) {
SV* crt_sv = newSVpv(
( run in 1.647 second using v1.01-cache-2.11-cpan-5511b514fd6 )