Commit 543cb462 authored by Jannik Hoelling's avatar Jannik Hoelling
Browse files

rename functions

parent 95dc4cc1
......@@ -86,9 +86,9 @@ int main(int argc, char *argv[]) {
*/
static const br_ssl_server_policy_class sr_policy_vtable = {
sizeof(br_ssl_server_policy_rsa_context),
sr_choose,
sr_do_keyx,
sr_do_sign};
choose,
do_keyx,
do_sign};
(&sc)->chain_handler.single_rsa.vtable = &sr_policy_vtable;
(&sc)->policy_vtable = &(&sc)->chain_handler.single_rsa.vtable;
......
......@@ -58,7 +58,7 @@ int br_ssl_choose_hash(unsigned bf) {
/* from bearssl-0.6/src/ssl/br_ssl_server_set_single_rsa.c */
static int
sr_choose(const br_ssl_server_policy_class **pctx,
choose(const br_ssl_server_policy_class **pctx,
const br_ssl_server_context *cc,
br_ssl_server_choices *choices) {
br_ssl_server_policy_rsa_context *pc;
......@@ -114,7 +114,7 @@ sr_choose(const br_ssl_server_policy_class **pctx,
}
static uint32_t
sr_do_keyx(const br_ssl_server_policy_class **pctx,
do_keyx(const br_ssl_server_policy_class **pctx,
unsigned char *data, size_t *len) {
br_ssl_server_policy_rsa_context *pc;
......@@ -148,7 +148,7 @@ static const unsigned char *HASH_OID[] = {
HASH_OID_SHA512};
static size_t
sr_do_sign(const br_ssl_server_policy_class **pctx,
do_sign(const br_ssl_server_policy_class **pctx,
unsigned algo_id, unsigned char *data, size_t hv_len, size_t len) {
br_ssl_server_policy_rsa_context *pc;
unsigned char hv[64];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment