diff options
author | 2014-04-19 15:27:10 +0000 | |
---|---|---|
committer | 2014-04-19 15:27:10 +0000 | |
commit | 6fdc0ef88e86911fd0bf3b31655e461aaccb7ecd (patch) | |
tree | 46fa7eb456279717e66e9166be28a7ba02513344 /lib/libssl/src | |
parent | one small tweak to avoid ever going off the end of a string. (diff) | |
download | wireguard-openbsd-6fdc0ef88e86911fd0bf3b31655e461aaccb7ecd.tar.xz wireguard-openbsd-6fdc0ef88e86911fd0bf3b31655e461aaccb7ecd.zip |
Repair some indent to be more KNF, and break instead of fallthrough to
default which does break
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/apps.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/libssl/src/apps/apps.c b/lib/libssl/src/apps/apps.c index 2035d513738..0536aa61345 100644 --- a/lib/libssl/src/apps/apps.c +++ b/lib/libssl/src/apps/apps.c @@ -310,8 +310,8 @@ ui_read(UI * ui, UI_STRING * uis) if (UI_get_input_flags(uis) & UI_INPUT_FLAG_DEFAULT_PWD && UI_get0_user_data(ui)) { switch (UI_get_string_type(uis)) { - case UIT_PROMPT: - case UIT_VERIFY: + case UIT_PROMPT: + case UIT_VERIFY: { const char *password = ((PW_CB_DATA *) UI_get0_user_data(ui))->password; @@ -320,6 +320,7 @@ ui_read(UI * ui, UI_STRING * uis) return 1; } } + break; default: break; } @@ -333,14 +334,15 @@ ui_write(UI * ui, UI_STRING * uis) if (UI_get_input_flags(uis) & UI_INPUT_FLAG_DEFAULT_PWD && UI_get0_user_data(ui)) { switch (UI_get_string_type(uis)) { - case UIT_PROMPT: - case UIT_VERIFY: + case UIT_PROMPT: + case UIT_VERIFY: { const char *password = - ((PW_CB_DATA *) UI_get0_user_data(ui))->password; + ((PW_CB_DATA *) UI_get0_user_data(ui))->password; if (password && password[0] != '\0') return 1; } + break; default: break; } @@ -1370,16 +1372,16 @@ index_name_cmp(const OPENSSL_CSTRING * a, const OPENSSL_CSTRING * b) return (strcmp(a[DB_name], b[DB_name])); } -static -IMPLEMENT_LHASH_HASH_FN(index_serial, OPENSSL_CSTRING) - static IMPLEMENT_LHASH_COMP_FN(index_serial, OPENSSL_CSTRING) - static IMPLEMENT_LHASH_HASH_FN(index_name, OPENSSL_CSTRING) - static IMPLEMENT_LHASH_COMP_FN(index_name, OPENSSL_CSTRING) +static IMPLEMENT_LHASH_HASH_FN(index_serial, OPENSSL_CSTRING) +static IMPLEMENT_LHASH_COMP_FN(index_serial, OPENSSL_CSTRING) +static IMPLEMENT_LHASH_HASH_FN(index_name, OPENSSL_CSTRING) +static IMPLEMENT_LHASH_COMP_FN(index_name, OPENSSL_CSTRING) + #undef BSIZE #define BSIZE 256 - BIGNUM * - load_serial(char *serialfile, int create, ASN1_INTEGER ** retai) +BIGNUM * +load_serial(char *serialfile, int create, ASN1_INTEGER ** retai) { BIO *in = NULL; BIGNUM *ret = NULL; |