chiark / gitweb /
rsa1: Wrap calls to keyfile_get* in a macro
[secnet.git] / secnet.h
index afc635a7a6c3e12c07e055e037349b712719ca89..0d5b8396d9abf95e63c6a8f56c6d12b5c88ae3b8 100644 (file)
--- a/secnet.h
+++ b/secnet.h
@@ -404,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) */
@@ -431,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 *****/