Skip to content

Commit fada69a

Browse files
committed
clang-format
1 parent e7d1778 commit fada69a

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

include/jwt-cpp/jwt.h

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3500,31 +3500,44 @@ namespace jwt {
35003500
}
35013501

35023502
if (alg_name == "RS256") {
3503-
return std::unique_ptr<algo<jwt::algorithm::rs256>>(new algo<jwt::algorithm::rs256>(jwt::algorithm::rs256(key.get_pkey())));
3503+
return std::unique_ptr<algo<jwt::algorithm::rs256>>(
3504+
new algo<jwt::algorithm::rs256>(jwt::algorithm::rs256(key.get_pkey())));
35043505
} else if (alg_name == "RS384") {
3505-
return std::unique_ptr<algo<jwt::algorithm::rs384>>(new algo<jwt::algorithm::rs384>(jwt::algorithm::rs384(key.get_pkey())));
3506+
return std::unique_ptr<algo<jwt::algorithm::rs384>>(
3507+
new algo<jwt::algorithm::rs384>(jwt::algorithm::rs384(key.get_pkey())));
35063508
} else if (alg_name == "RS512") {
3507-
return std::unique_ptr<algo<jwt::algorithm::rs512>>(new algo<jwt::algorithm::rs512>(jwt::algorithm::rs512(key.get_pkey())));
3509+
return std::unique_ptr<algo<jwt::algorithm::rs512>>(
3510+
new algo<jwt::algorithm::rs512>(jwt::algorithm::rs512(key.get_pkey())));
35083511
} else if (alg_name == "PS256") {
3509-
return std::unique_ptr<algo<jwt::algorithm::ps256>>(new algo<jwt::algorithm::ps256>(jwt::algorithm::ps256(key.get_pkey())));
3512+
return std::unique_ptr<algo<jwt::algorithm::ps256>>(
3513+
new algo<jwt::algorithm::ps256>(jwt::algorithm::ps256(key.get_pkey())));
35103514
} else if (alg_name == "PS384") {
3511-
return std::unique_ptr<algo<jwt::algorithm::ps384>>(new algo<jwt::algorithm::ps384>(jwt::algorithm::ps384(key.get_pkey())));
3515+
return std::unique_ptr<algo<jwt::algorithm::ps384>>(
3516+
new algo<jwt::algorithm::ps384>(jwt::algorithm::ps384(key.get_pkey())));
35123517
} else if (alg_name == "PS512") {
3513-
return std::unique_ptr<algo<jwt::algorithm::ps512>>(new algo<jwt::algorithm::ps512>(jwt::algorithm::ps512(key.get_pkey())));
3518+
return std::unique_ptr<algo<jwt::algorithm::ps512>>(
3519+
new algo<jwt::algorithm::ps512>(jwt::algorithm::ps512(key.get_pkey())));
35143520
} else if (alg_name == "ES256") {
3515-
return std::unique_ptr<algo<jwt::algorithm::es256>>(new algo<jwt::algorithm::es256>(jwt::algorithm::es256(key.get_pkey())));
3521+
return std::unique_ptr<algo<jwt::algorithm::es256>>(
3522+
new algo<jwt::algorithm::es256>(jwt::algorithm::es256(key.get_pkey())));
35163523
} else if (alg_name == "ES384") {
3517-
return std::unique_ptr<algo<jwt::algorithm::es384>>(new algo<jwt::algorithm::es384>(jwt::algorithm::es384(key.get_pkey())));
3524+
return std::unique_ptr<algo<jwt::algorithm::es384>>(
3525+
new algo<jwt::algorithm::es384>(jwt::algorithm::es384(key.get_pkey())));
35183526
} else if (alg_name == "ES512") {
3519-
return std::unique_ptr<algo<jwt::algorithm::es512>>(new algo<jwt::algorithm::es512>(jwt::algorithm::es512(key.get_pkey())));
3527+
return std::unique_ptr<algo<jwt::algorithm::es512>>(
3528+
new algo<jwt::algorithm::es512>(jwt::algorithm::es512(key.get_pkey())));
35203529
} else if (alg_name == "ES256K") {
3521-
return std::unique_ptr<algo<jwt::algorithm::es256k>>(new algo<jwt::algorithm::es256k>(jwt::algorithm::es256k(key.get_pkey())));
3530+
return std::unique_ptr<algo<jwt::algorithm::es256k>>(
3531+
new algo<jwt::algorithm::es256k>(jwt::algorithm::es256k(key.get_pkey())));
35223532
} else if (alg_name == "HS256") {
3523-
return std::unique_ptr<algo<jwt::algorithm::hs256>>(new algo<jwt::algorithm::hs256>(jwt::algorithm::hs256(key.get_oct_key())));
3533+
return std::unique_ptr<algo<jwt::algorithm::hs256>>(
3534+
new algo<jwt::algorithm::hs256>(jwt::algorithm::hs256(key.get_oct_key())));
35243535
} else if (alg_name == "HS384") {
3525-
return std::unique_ptr<algo<jwt::algorithm::hs384>>(new algo<jwt::algorithm::hs384>(jwt::algorithm::hs384(key.get_oct_key())));
3536+
return std::unique_ptr<algo<jwt::algorithm::hs384>>(
3537+
new algo<jwt::algorithm::hs384>(jwt::algorithm::hs384(key.get_oct_key())));
35263538
} else if (alg_name == "HS512") {
3527-
return std::unique_ptr<algo<jwt::algorithm::hs512>>(new algo<jwt::algorithm::hs512>(jwt::algorithm::hs512(key.get_oct_key())));
3539+
return std::unique_ptr<algo<jwt::algorithm::hs512>>(
3540+
new algo<jwt::algorithm::hs512>(jwt::algorithm::hs512(key.get_oct_key())));
35283541
}
35293542

35303543
ec = error::token_verification_error::wrong_algorithm;

0 commit comments

Comments
 (0)