Tor  0.4.7.0-alpha-dev
Functions
authcert_parse.h File Reference

Header file for authcert_parse.c. More...

Go to the source code of this file.

Functions

authority_cert_tauthority_cert_parse_from_string (const char *s, size_t maxlen, const char **end_of_string)
 

Detailed Description

Header file for authcert_parse.c.

Definition in file authcert_parse.h.

Function Documentation

◆ authority_cert_parse_from_string()

authority_cert_t* authority_cert_parse_from_string ( const char *  s,
size_t  maxlen,
const char **  end_of_string 
)

Parse a key certificate from s; point end-of-string to the first character after the certificate.

Reject any certificate at least this big; it is probably an overflow, an attack, a bug, or some other nonsense.

Definition at line 35 of file authcert_parse.c.