Name

otrl_context_find_fingerprint — Look up a fingerprint

Synopsis

(fprint, added) otrl_context_find_fingerprint(context,  
 raw_fingerprint,  
 add_if_missing); 
ConnContext context;
string raw_fingerprint;
int add_if_missing;
 

Description

Find a Fingerprint in context. If add_if_missing is True, a new Fingerprint object is allocated and returned if one does not currently exist.

Returns a tuple (fprint, added). fprint is either the found Fingerprint object or None, added is 1 when the fingerprint was newly created (see above) and otherwise 0.