Skip to content

Commit

Permalink
fix linter errors introduced by CI getting disabled temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
aajain-com committed May 20, 2021
1 parent 4967f69 commit b171c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion HAP/HAPServiceTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,6 @@ extern const HAPUUID kHAPServiceType_Microphone;
extern const HAPUUID kHAPServiceType_Speaker;
/**@}*/


#if __has_feature(nullability)
#pragma clang assume_nonnull end
#endif
Expand Down
4 changes: 2 additions & 2 deletions PAL/Crypto/OpenSSL/HAPOpenSSL.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void HAP_srp_verifier(
uint8_t h[SHA512_BYTES];
Calc_x(h, salt, user, user_len, pass, pass_len);
WITH_BN(x, BN_bin2bn(h, sizeof h, NULL), {
BN_set_flags(x, BN_FLG_CONSTTIME);
BN_set_flags(x, BN_FLG_CONSTTIME);
WITH_BN(verifier, BN_new(), {
SRP_gN* gN = Get_gN_3072();
WITH_CTX(BN_CTX, BN_CTX_new(), {
Expand Down Expand Up @@ -187,7 +187,7 @@ static BIGNUM* Calc_B(BIGNUM* b, BIGNUM* v) {
BIGNUM* B = BN_new();
WITH_CTX(BN_CTX, BN_CTX_new(), {
WITH_BN(gb, BN_new(), {
BN_set_flags(b, BN_FLG_CONSTTIME);
BN_set_flags(b, BN_FLG_CONSTTIME);
int ret = BN_mod_exp(gb, gN->g, b, gN->N, ctx);
HAPAssert(!!ret);
WITH_BN(k, Calc_k(gN), {
Expand Down

0 comments on commit b171c17

Please sign in to comment.