Skip to content

Commit 512f50f

Browse files
committed
Formatting changes per review comments
1 parent 05b3651 commit 512f50f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/wp_rsa_kmgmt.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -961,13 +961,14 @@ static int wp_rsa_validate(const wp_Rsa* rsa, int selection, int checkType)
961961
return ok;
962962
}
963963

964-
static int numParams(const OSSL_PARAM *p) {
964+
static int wp_params_count(const OSSL_PARAM *p)
965+
{
965966
int cnt = 0;
966-
while(p && p->key != NULL) {
967-
cnt++;
968-
p++;
969-
}
970-
return cnt;
967+
while ((p != NULL) && (p->key != NULL)) {
968+
cnt++;
969+
p++;
970+
}
971+
return cnt;
971972
}
972973

973974
/**
@@ -986,7 +987,7 @@ static int wp_rsa_import_key_data(wp_Rsa* rsa, const OSSL_PARAM params[],
986987
int i;
987988
int cnt;
988989

989-
if (priv && (numParams(params) > 2)) {
990+
if (priv && (wp_params_count(params) > 2)) {
990991
cnt = WP_RSA_PARAM_NUMS_CNT;
991992
}
992993
else {

0 commit comments

Comments
 (0)