[BACK]Return to ocsp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/ocsp.c between version 1.12 and 1.13

version 1.12, 2017/01/21 09:29:09 version 1.13, 2017/11/29 23:47:18
Line 106 
Line 106 
 ocsp_main(int argc, char **argv)  ocsp_main(int argc, char **argv)
 {  {
         char **args;          char **args;
         char *host = NULL, *port = NULL, *path = "/";          char *host = NULL, *port = NULL, *path = NULL;
         char *reqin = NULL, *respin = NULL;          char *reqin = NULL, *respin = NULL;
         char *reqout = NULL, *respout = NULL;          char *reqout = NULL, *respout = NULL;
         char *signfile = NULL, *keyfile = NULL;          char *signfile = NULL, *keyfile = NULL;
Line 177 
Line 177 
                         } else                          } else
                                 badarg = 1;                                  badarg = 1;
                 } else if (!strcmp(*args, "-url")) {                  } else if (!strcmp(*args, "-url")) {
                         if (args[1]) {                          if (args[1] && host == NULL && port == NULL &&
                               path == NULL) {
                                 args++;                                  args++;
                                 if (!OCSP_parse_url(*args, &host, &port, &path, &use_ssl)) {                                  if (!OCSP_parse_url(*args, &host, &port, &path, &use_ssl)) {
                                         BIO_printf(bio_err, "Error parsing URL\n");                                          BIO_printf(bio_err, "Error parsing URL\n");
Line 186 
Line 187 
                         } else                          } else
                                 badarg = 1;                                  badarg = 1;
                 } else if (!strcmp(*args, "-host")) {                  } else if (!strcmp(*args, "-host")) {
                         if (args[1]) {                          if (args[1] && use_ssl == -1) {
                                 args++;                                  args++;
                                 host = *args;                                  host = *args;
                         } else                          } else
                                 badarg = 1;                                  badarg = 1;
                 } else if (!strcmp(*args, "-port")) {                  } else if (!strcmp(*args, "-port")) {
                         if (args[1]) {                          if (args[1] && use_ssl == -1) {
                                 args++;                                  args++;
                                 port = *args;                                  port = *args;
                         } else                          } else
Line 331 
Line 332 
                         } else                          } else
                                 badarg = 1;                                  badarg = 1;
                 } else if (!strcmp(*args, "-path")) {                  } else if (!strcmp(*args, "-path")) {
                         if (args[1]) {                          if (args[1] && use_ssl == -1) {
                                 args++;                                  args++;
                                 path = *args;                                  path = *args;
                         } else                          } else
Line 629 
Line 630 
                 if (cbio)                  if (cbio)
                         send_ocsp_response(cbio, resp);                          send_ocsp_response(cbio, resp);
         } else if (host) {          } else if (host) {
                 resp = process_responder(bio_err, req, host, path,                  resp = process_responder(bio_err, req, host, path ? path : "/",
                     port, use_ssl, headers, req_timeout);                      port, use_ssl, headers, req_timeout);
                 if (!resp)                  if (!resp)
                         goto end;                          goto end;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13