MCPcopy Create free account
hub / github.com/cloudflare/cfssl / ProcessRequest

Method ProcessRequest

csr/csr.go:372–386  ·  view source on GitHub ↗

ProcessRequest validates and processes the incoming request. It is a wrapper around a validator and the ParseRequest function.

(req *CertificateRequest)

Source from the content-addressed store, hash-verified

370// ProcessRequest validates and processes the incoming request. It is
371// a wrapper around a validator and the ParseRequest function.
372func (g *Generator) ProcessRequest(req *CertificateRequest) (csr, key []byte, err error) {
373
374 log.Info("generate received request")
375 err = g.Validator(req)
376 if err != nil {
377 log.Warningf("invalid request: %v", err)
378 return nil, nil, err
379 }
380
381 csr, key, err = ParseRequest(req)
382 if err != nil {
383 return nil, nil, err
384 }
385 return
386}
387
388// IsNameEmpty returns true if the name has no identifying information in it.
389func IsNameEmpty(n Name) bool {

Callers 9

NewFunction · 0.95
genkeyMainFunction · 0.95
gencertMainFunction · 0.95
selfSignMainFunction · 0.95
TestGeneratorFunction · 0.95
TestBadGeneratorFunction · 0.95
TestWeakCSRFunction · 0.95
HandleMethod · 0.80
HandleMethod · 0.80

Calls 3

InfoFunction · 0.92
WarningfFunction · 0.92
ParseRequestFunction · 0.85

Tested by 3

TestGeneratorFunction · 0.76
TestBadGeneratorFunction · 0.76
TestWeakCSRFunction · 0.76