X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=secnet.h;h=0d5b8396d9abf95e63c6a8f56c6d12b5c88ae3b8;hb=58913a3b93a674ccf45555066ea07154b27a244b;hp=84e732d88fd2c952d5cbf5ddd9069b79246f67a1;hpb=bd7f386bb44f2f8e2c6d77ea176026e88176412e;p=secnet.git diff --git a/secnet.h b/secnet.h index 84e732d..0d5b839 100644 --- a/secnet.h +++ b/secnet.h @@ -45,6 +45,8 @@ #include +#include "osdep.h" + #define MAX_PEER_ADDRS 5 /* send at most this many copies; honour at most that many addresses */ @@ -402,7 +404,7 @@ struct sigscheme_info; typedef bool_t sigscheme_loadpub(const struct sigscheme_info *algo, struct buffer_if *pubkeydata, struct sigpubkey_if **sigpub_r, - struct log_if *log); + struct log_if *log, struct cloc loc); /* pubkeydata is (supposedly) for this algorithm. * loadpub should log an error if it fails. * pubkeydata may be modified (but not freed) */ @@ -429,6 +431,8 @@ struct sigscheme_info { extern const struct sigscheme_info rsa1_sigscheme; extern const struct sigscheme_info sigschemes[]; /* sentinel has name==0 */ +const struct sigscheme_info *sigscheme_lookup(const char *name); + /***** END of signature schemes *****/ /***** CLOSURE TYPES and interface definitions *****/