81 #ifndef OPENSSL_NO_SHA1
110 if (!(cid = OCSP_CERTID_new()))
goto err;
120 if ((alg->
parameter=ASN1_TYPE_new()) == NULL)
goto err;
141 if (cid) OCSP_CERTID_free(cid);
168 int OCSP_parse_url(
char *url,
char **phost,
char **pport,
char **ppath,
int *pssl)
180 if (!buf)
goto mem_err;
183 p = strchr(buf,
':');
185 if (!p)
goto parse_err;
189 if (!strcmp(buf,
"http"))
194 else if (!strcmp(buf,
"https"))
203 if ((p[0] !=
'/') || (p[1] !=
'/'))
223 if (!*ppath)
goto mem_err;
226 if ((p = strchr(host,
':')))
234 if (*pssl) port =
"443";
239 if (!*pport)
goto mem_err;
243 if (!*phost)
goto mem_err;