Skip to content

Commit

Permalink
Remove jwt_algorithms.h.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 368161837
  • Loading branch information
juergw authored and copybara-github committed Apr 13, 2021
1 parent cb1ef7f commit 49cdb25
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 55 deletions.
11 changes: 0 additions & 11 deletions cc/jwt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,11 @@ package(default_visibility = ["//:__subpackages__"])

licenses(["notice"])

cc_library(
name = "jwt_algorithms",
hdrs = ["jwt_algorithms.h"],
include_prefix = "tink/jwt",
visibility = ["//visibility:public"],
deps = [
"@com_google_absl//absl/strings",
],
)

cc_library(
name = "jwt_names",
hdrs = ["jwt_names.h"],
include_prefix = "tink/jwt",
deps = [
":jwt_algorithms",
"//util:status",
"//util:statusor",
"@com_google_absl//absl/strings",
Expand Down
8 changes: 0 additions & 8 deletions cc/jwt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ tink_cc_library(
tink::util::statusor
)

tink_cc_library(
NAME jwt_algorithms
SRCS
jwt_algorithms.h
DEPS
absl::strings
)

tink_cc_library(
NAME raw_jwt
SRCS
Expand Down
30 changes: 0 additions & 30 deletions cc/jwt/jwt_algorithms.h

This file was deleted.

6 changes: 0 additions & 6 deletions cc/jwt/jwt_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "tink/jwt/jwt_algorithms.h"
#include "tink/util/status.h"
#include "tink/util/statusor.h"

Expand All @@ -46,11 +45,6 @@ constexpr absl::string_view kJwtHeaderKeyId = "kid";
constexpr absl::string_view kJwtHeaderType = "typ";
constexpr absl::string_view kJwtHeaderContentType = "cty";

// Algorithms
constexpr absl::string_view kJwtAlgorithmHs256 = "HS256";
constexpr absl::string_view kJwtAlgorithmEs256 = "ES256";
constexpr absl::string_view kJwtAlgorithmRs256 = "RS256";

} // namespace tink
} // namespace crypto

Expand Down

0 comments on commit 49cdb25

Please sign in to comment.