tor  0.4.2.0-alpha-dev
Macros | Functions
dsigs_parse.h File Reference

Go to the source code of this file.

Macros

#define ns_detached_signatures_free(s)   FREE_AND_NULL(ns_detached_signatures_t, ns_detached_signatures_free_, (s))
 

Functions

ns_detached_signatures_tnetworkstatus_parse_detached_signatures (const char *s, const char *eos)
 
void ns_detached_signatures_free_ (ns_detached_signatures_t *s)
 

Detailed Description

Code to parse and validate detached-signature objects.

Header file for dsigs_parse.c.

Definition in file dsigs_parse.h.

Function Documentation

◆ networkstatus_parse_detached_signatures()

ns_detached_signatures_t* networkstatus_parse_detached_signatures ( const char *  s,
const char *  eos 
)

Parse a detached v3 networkstatus signature document between s and eos and return the result. Return -1 on failure.

Definition at line 67 of file dsigs_parse.c.

◆ ns_detached_signatures_free_()

void ns_detached_signatures_free_ ( ns_detached_signatures_t s)

Release all storage held in s.

Definition at line 267 of file dsigs_parse.c.

References ns_detached_signatures_t::signatures.