refactor, add experimental solv_parse_sig and solv_verify_sig
[platform/upstream/libsolv.git] / ext / repo_pubkey.h
1 /*
2  * Copyright (c) 2013, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 #include "repo.h"
9
10 extern int repo_add_rpmdb_pubkeys(Repo *repo, int flags);
11 extern Id repo_add_pubkey(Repo *repo, const char *key, int flags);
12
13 Id solv_parse_sig(FILE *fp, unsigned char **sigpkgp, int *sigpkglp, char *keyidstr);
14 int solv_verify_sig(const unsigned char *pubdata, int pubdatal, unsigned char *sigpkg, int sigpkgl, void *chk);
15