[ruby/openssl] Add fallthrough comments
https://github.com/ruby/openssl/commit/258e30b640
This commit is contained in:
parent
6920f3dc96
commit
289f3a79b5
@ -288,6 +288,7 @@ static VALUE ossl_ec_key_set_private_key(VALUE self, VALUE private_key)
|
|||||||
case 0:
|
case 0:
|
||||||
if (bn == NULL)
|
if (bn == NULL)
|
||||||
break;
|
break;
|
||||||
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
ossl_raise(eECError, "EC_KEY_set_private_key");
|
ossl_raise(eECError, "EC_KEY_set_private_key");
|
||||||
}
|
}
|
||||||
@ -334,6 +335,7 @@ static VALUE ossl_ec_key_set_public_key(VALUE self, VALUE public_key)
|
|||||||
case 0:
|
case 0:
|
||||||
if (point == NULL)
|
if (point == NULL)
|
||||||
break;
|
break;
|
||||||
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
ossl_raise(eECError, "EC_KEY_set_public_key");
|
ossl_raise(eECError, "EC_KEY_set_public_key");
|
||||||
}
|
}
|
||||||
|
@ -1621,6 +1621,7 @@ ossl_start_ssl(VALUE self, int (*func)(), const char *funcname, VALUE opts)
|
|||||||
err_msg, verify_msg);
|
err_msg, verify_msg);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
ossl_raise(eSSLError, "%s returned=%d errno=%d peeraddr=%"PRIsVALUE" state=%s",
|
ossl_raise(eSSLError, "%s returned=%d errno=%d peeraddr=%"PRIsVALUE" state=%s",
|
||||||
funcname, ret2, errno, peeraddr_ip_str(self), SSL_state_string_long(ssl));
|
funcname, ret2, errno, peeraddr_ip_str(self), SSL_state_string_long(ssl));
|
||||||
@ -1905,6 +1906,7 @@ ossl_ssl_write_internal(VALUE self, VALUE str, VALUE opts)
|
|||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
if (errno) rb_sys_fail(0);
|
if (errno) rb_sys_fail(0);
|
||||||
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
ossl_raise(eSSLError, "SSL_write");
|
ossl_raise(eSSLError, "SSL_write");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user