Open SCAP Library
src
source
signature_priv.h
1
/*
2
* Copyright 2021 Red Hat Inc., Durham, North Carolina.
3
* All Rights Reserved.
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*
19
* Author:
20
* Jan Černý <jcerny@redhat.com>
21
*/
22
23
#ifndef OSCAP_SIGNATURE_PRIV_H
24
#define OSCAP_SIGNATURE_PRIV_H
25
26
#ifdef HAVE_CONFIG_H
27
#include <config.h>
28
#endif
29
30
#include <stdbool.h>
31
32
#include "oscap_source_priv.h"
33
34
struct
oscap_signature_ctx
;
35
36
struct
oscap_signature_ctx
*oscap_signature_ctx_new(
void
);
37
void
oscap_signature_ctx_free(
struct
oscap_signature_ctx
*ctx);
38
void
oscap_signature_ctx_set_pubkey_pem(
struct
oscap_signature_ctx
*ctx,
const
char
*path);
39
void
oscap_signature_ctx_set_pubkey_cert_pem(
struct
oscap_signature_ctx
*ctx,
const
char
*path);
40
int
oscap_signature_validate(
struct
oscap_source
*source,
struct
oscap_signature_ctx
*ctx,
bool
enforce_signature);
41
42
#endif
/* OSCAP_SIGNATURE_PRIV_H */
oscap_source
Definition:
oscap_source.c:66
oscap_signature_ctx
Definition:
signature.c:49
Generated by
1.8.20