Support OCSPResponderID.byKey, indent.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16910 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -117,8 +117,9 @@ verify_ocsp(hx509_context context,
 | 
				
			|||||||
	q.subject_name = &ocsp->ocsp.tbsResponseData.responderID.u.byName;
 | 
						q.subject_name = &ocsp->ocsp.tbsResponseData.responderID.u.byName;
 | 
				
			||||||
	break;
 | 
						break;
 | 
				
			||||||
    case choice_OCSPResponderID_byKey:
 | 
					    case choice_OCSPResponderID_byKey:
 | 
				
			||||||
	ret = EINVAL; /* XXX */
 | 
						q.match = HX509_QUERY_MATCH_KEY_HASH_SHA1;
 | 
				
			||||||
	goto out;
 | 
						q.keyhash_sha1 = &ocsp->ocsp.tbsResponseData.responderID.u.byKey;
 | 
				
			||||||
 | 
						break;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
    ret = hx509_certs_find(context, certs, &q, &signer);
 | 
					    ret = hx509_certs_find(context, certs, &q, &signer);
 | 
				
			||||||
@@ -628,7 +629,8 @@ add_to_req(hx509_context context, void *ptr, hx509_cert cert)
 | 
				
			|||||||
    void *d;
 | 
					    void *d;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    d = realloc(ctx->req->requestList.val, 
 | 
					    d = realloc(ctx->req->requestList.val, 
 | 
				
			||||||
		sizeof(ctx->req->requestList.val[0]) * (ctx->req->requestList.len + 1));
 | 
							sizeof(ctx->req->requestList.val[0]) *
 | 
				
			||||||
 | 
							(ctx->req->requestList.len + 1));
 | 
				
			||||||
    if (d == NULL)
 | 
					    if (d == NULL)
 | 
				
			||||||
	return ENOMEM;
 | 
						return ENOMEM;
 | 
				
			||||||
    ctx->req->requestList.val = d;
 | 
					    ctx->req->requestList.val = d;
 | 
				
			||||||
@@ -668,7 +670,8 @@ add_to_req(hx509_context context, void *ptr, hx509_cert cert)
 | 
				
			|||||||
	goto out;
 | 
						goto out;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    os.data = p->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.data;
 | 
					    os.data = p->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.data;
 | 
				
			||||||
    os.length = p->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.length / 8;
 | 
					    os.length = 
 | 
				
			||||||
 | 
						p->tbsCertificate.subjectPublicKeyInfo.subjectPublicKey.length / 8;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ret = _hx509_create_signature(NULL,
 | 
					    ret = _hx509_create_signature(NULL,
 | 
				
			||||||
				  &one->reqCert.hashAlgorithm,
 | 
									  &one->reqCert.hashAlgorithm,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user