Skip to content

Commit

Permalink
Remove jose hdr command
Browse files Browse the repository at this point in the history
This command as exposed is insecure. It doesn't validate the protected
header. Nor is there any way to validate the protected header.

We will remove it for now. We can bring it back if it is needed.
  • Loading branch information
npmccallum committed Sep 23, 2016
1 parent 7c22bcb commit 1ca894d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 133 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ cmd_jose_SOURCES = \
cmd/ver.c \
cmd/enc.c \
cmd/dec.c \
cmd/hdr.c \
cmd/jose.c \
cmd/jose.h

Expand Down
124 changes: 0 additions & 124 deletions cmd/hdr.c

This file was deleted.

2 changes: 0 additions & 2 deletions cmd/jose.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ main(int argc, char *argv[])
{ "ver", jcmd_ver },
{ "enc", jcmd_enc },
{ "dec", jcmd_dec },
{ "hdr", jcmd_hdr },
{}
};

Expand Down Expand Up @@ -256,7 +255,6 @@ main(int argc, char *argv[])
"\n jose " VER_USE
"\n jose " ENC_USE
"\n jose " DEC_USE
"\n jose " HDR_USE
"\n");
return EXIT_FAILURE;
}
6 changes: 0 additions & 6 deletions cmd/jose.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
#define DEC_USE \
"dec -i JWE [-n] [-k JWK(Set) ...] [-o PLD]"

#define HDR_USE \
"hdr -i JWE|JWS [-o HDR]"

void *
jcmd_load_data(const char *file, size_t *len);

Expand Down Expand Up @@ -85,6 +82,3 @@ jcmd_enc(int argc, char *argv[]);

int
jcmd_dec(int argc, char *argv[]);

int
jcmd_hdr(int argc, char *argv[]);

0 comments on commit 1ca894d

Please sign in to comment.