SocketPair[0] = SockDesc2;
SocketPair[1] = socket_fd(TcpDeviceChan);
- return (0);
+ return 0;
}
/*----------------------------------------------------------------------------*/
OPENSSL_clear_free(priv, privlen);
OPENSSL_free(pub);
EC_PRIVATEKEY_free(priv_key);
- return (ok ? ret : 0);
+ return ok ? ret : 0;
}
int i2d_ECParameters(const EC_KEY *a, unsigned char **out)
const EVP_CIPHER *EVP_chacha20_poly1305(void)
{
- return (&chacha20_poly1305);
+ return &chacha20_poly1305;
}
#endif
#else
int X509_get_ext_by_critical(const X509 *x, int crit, int lastpos)
{
- return (X509v3_get_ext_by_critical(x->cert_info.extensions, crit, lastpos));
+ return X509v3_get_ext_by_critical(x->cert_info.extensions, crit, lastpos);
}
const X509_EXTENSION *X509_get_ext(const X509 *x, int loc)
* "select" (with updated timeouts).
*/
- return (select(sock + 1, &read_fd, &write_fd, NULL, tvp));
+ return select(sock + 1, &read_fd, &write_fd, NULL, tvp);
}
/* Main loop for server to accept QUIC connections. */
static int test_hdr_resp_hdr_limit_short(void)
{
- return (test_http_resp_hdr_limit(1));
+ return test_http_resp_hdr_limit(1);
}
static int test_hdr_resp_hdr_limit_256(void)
static int test_quic_client(void)
{
- return (test_quic_client_ex(INVALID_SOCKET));
+ return test_quic_client_ex(INVALID_SOCKET);
}
static int test_quic_client_connect_first(void)
close(c_fd);
- return (rv);
+ return rv;
err:
if (c_fd != INVALID_SOCKET)
close(c_fd);
- return (0);
+ return 0;
}
OPT_TEST_DECLARE_USAGE("certfile privkeyfile\n")
aidlen = i2d_X509_ALGOR(algor, oidbuf);
X509_ALGOR_free(algor);
- return (aidlen);
+ return aidlen;
}
/*