Tor  0.4.7.0-alpha-dev
Macros | Functions
dsigs_parse.h File Reference

Code to parse and validate detached-signature objects. More...

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.

Referenced by dirvote_add_signatures_to_all_pending_consensuses().

◆ 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.