OCSP: a bunch of whitespace fixes

This commit is contained in:
Johanna Amann 2017-02-09 12:28:00 -08:00
parent b021fe7562
commit 9c6cebf324
5 changed files with 17 additions and 17 deletions

View file

@ -548,14 +548,14 @@ x509_verify_chainerror:
## cert: The X509 certificate opaque handle.
##
## hash_alg: the hash algorithm to use
##
##
## Returns: A string of hash of issuer name.
##
##
## .. bro:see:: x509_certificate x509_extension x509_ext_basic_constraints
## x509_ext_subject_alternative_name x509_parse
## x509_get_certificate_string x509_verify
function x509_issuer_name_hash%(cert: opaque of x509, hash_alg: string%): string
%{
%{
assert(cert);
assert(hash_alg);
@ -583,7 +583,7 @@ function x509_issuer_name_hash%(cert: opaque of x509, hash_alg: string%): string
return NULL;
}
const EVP_MD *dgst;
const EVP_MD *dgst;
if (strcmp(h, "sha1") == 0)
dgst = EVP_sha1();
else if (strcmp(h, "sha224") == 0)

View file

@ -11,7 +11,7 @@
##
## .. bro:see:: ssl_stapled_ocsp ocsp_parse_request
function ocsp_parse_response%(ocsp_reply: string%): OCSP::Response
%{
%{
const unsigned char* start = ocsp_reply->Bytes();
OCSP_RESPONSE *resp = NULL;
file_analysis::OCSP_RESPVal* resp_val = NULL;
@ -43,7 +43,7 @@ function ocsp_parse_response%(ocsp_reply: string%): OCSP::Response
##
## .. bro:see:: ssl_stapled_ocsp ocsp_parse_response
function ocsp_parse_request%(ocsp_req: string%): OCSP::Request
%{
%{
const unsigned char* start = ocsp_req->Bytes();
OCSP_REQUEST *req = NULL;
file_analysis::OCSP_REQVal* req_val = NULL;