timestamping.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From 28b384e77fa0d4dd38751a0c72ab5976d2e38f75 Mon Sep 17 00:00:00 2001
  2. From: Georg Koppen <gk@torproject.org>
  3. Date: Fri, 5 Feb 2016 09:23:10 +0000
  4. Subject: [PATCH] Allow timestamping with the 'add' command
  5. diff --git a/osslsigncode.c b/osslsigncode.c
  6. index 32e37c8..2978c02 100644
  7. --- a/osslsigncode.c
  8. +++ b/osslsigncode.c
  9. @@ -2556,16 +2556,16 @@ int main(int argc, char **argv)
  10. if (--argc < 1) usage(argv0);
  11. url = *(++argv);
  12. #ifdef ENABLE_CURL
  13. - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-t")) {
  14. + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-t")) {
  15. if (--argc < 1) usage(argv0);
  16. turl[nturl++] = *(++argv);
  17. - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-ts")) {
  18. + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-ts")) {
  19. if (--argc < 1) usage(argv0);
  20. tsurl[ntsurl++] = *(++argv);
  21. - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-p")) {
  22. + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-p")) {
  23. if (--argc < 1) usage(argv0);
  24. proxy = *(++argv);
  25. - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-noverifypeer")) {
  26. + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-noverifypeer")) {
  27. noverifypeer = 1;
  28. #endif
  29. } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-addUnauthenticatedBlob")) {
  30. --
  31. 2.7.0
  32. From 8159546dfa270da0e3512dcba983ce15029111d0 Mon Sep 17 00:00:00 2001
  33. From: Georg Koppen <gk@torproject.org>
  34. Date: Sat, 11 Apr 2020 05:50:36 +0000
  35. Subject: [PATCH] fixup! Allow timestamping with the 'add' command
  36. diff --git a/osslsigncode.c b/osslsigncode.c
  37. index 3797458..4f4b897 100644
  38. --- a/osslsigncode.c
  39. +++ b/osslsigncode.c
  40. @@ -2447,7 +2447,7 @@ int main(int argc, char **argv)
  41. } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-n")) {
  42. if (--argc < 1) usage(argv0);
  43. desc = *(++argv);
  44. - } else if ((cmd == CMD_SIGN) && !strcmp(*argv, "-h")) {
  45. + } else if ((cmd == CMD_SIGN || cmd == CMD_ADD) && !strcmp(*argv, "-h")) {
  46. if (--argc < 1) usage(argv0);
  47. ++argv;
  48. if (!strcmp(*argv, "md5")) {
  49. --
  50. 2.26.0