-/* $OpenBSD: ssl_asn1.c,v 1.57 2018/08/27 16:42:48 jsing Exp $ */
+/* $OpenBSD: ssl_asn1.c,v 1.58 2021/03/29 18:24:04 tb Exp $ */
/*
* Copyright (c) 2016 Joel Sing <jsing@openbsd.org>
*
goto err;
if (timeout != 0)
s->timeout = (long)timeout;
-
+
/* Peer certificate [3]. */
X509_free(s->peer);
s->peer = NULL;
if (!CBS_strdup(&hostname, &s->tlsext_hostname))
goto err;
}
-
+
/* PSK identity hint [7]. */
/* PSK identity [8]. */
return (s);
-err:
+ err:
ERR_asprintf_error_data("offset=%d", (int)(CBS_data(&cbs) - *pp));
if (s != NULL && (a == NULL || *a != s))