https://github.com/openssl/openssl/issues/10958
CLA: trivial
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11125)
static long b64_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
static long b64_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
BIO *next = BIO_next(b);
if (next == NULL)
return 0;
BIO *next = BIO_next(b);
if (next == NULL)
return 0;
- switch (cmd) {
- default:
- ret = BIO_callback_ctrl(next, cmd, fp);
- break;
- }
- return ret;
+
+ return BIO_callback_ctrl(next, cmd, fp);
}
static int b64_puts(BIO *b, const char *str)
}
static int b64_puts(BIO *b, const char *str)
static long enc_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
static long enc_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
BIO *next = BIO_next(b);
if (next == NULL)
return 0;
BIO *next = BIO_next(b);
if (next == NULL)
return 0;
- switch (cmd) {
- default:
- ret = BIO_callback_ctrl(next, cmd, fp);
- break;
- }
- return ret;
+
+ return BIO_callback_ctrl(next, cmd, fp);
}
int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
}
int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
static long md_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
static long md_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
BIO *next;
next = BIO_next(b);
BIO *next;
next = BIO_next(b);
if (next == NULL)
return 0;
if (next == NULL)
return 0;
- switch (cmd) {
- default:
- ret = BIO_callback_ctrl(next, cmd, fp);
- break;
- }
- return ret;
+ return BIO_callback_ctrl(next, cmd, fp);
}
static int md_gets(BIO *bp, char *buf, int size)
}
static int md_gets(BIO *bp, char *buf, int size)
static long ok_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
static long ok_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
BIO *next;
next = BIO_next(b);
BIO *next;
next = BIO_next(b);
if (next == NULL)
return 0;
if (next == NULL)
return 0;
- switch (cmd) {
- default:
- ret = BIO_callback_ctrl(next, cmd, fp);
- break;
- }
-
- return ret;
+ return BIO_callback_ctrl(next, cmd, fp);
}
static void longswap(void *_ptr, size_t len)
}
static void longswap(void *_ptr, size_t len)