OpenVAS Libraries  4.0+rc3.SVN
nasl/nasl_signature.h
00001 /* OpenVAS-LibNASL
00002  *
00003  * Authors:
00004  * Bernhard Herzog <bernhard.herzog@intevation.de>
00005  *
00006  * Copyright:
00007  * Copyright (C) 2009 Greenbone Networks GmbH
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License version 2,
00011  * or, at your option, any later version as published by the Free
00012  * Software Foundation
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
00022  */
00023 
00024 #ifndef NASL_SIGNATURE_H
00025 #define NASL_SIGNATURE_H
00026 
00027 #include <gpgme.h>
00028 #include <glib.h>
00029 
00030 int nasl_verify_signature (const char *filename);
00031 char *nasl_extract_signature_fprs (const char *filename);
00032 gpgme_ctx_t init_openvas_gpgme_ctx (void);
00033 char *nasl_get_pubkey (gpgme_ctx_t ctx, char *fingerprint);
00034 GSList *nasl_get_all_certificates ();
00035 
00036 #endif