]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libstrongswan/plugins/pkcs12/pkcs12_decode.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libstrongswan / plugins / pkcs12 / pkcs12_decode.h
CommitLineData
feef6373
TB
1/*
2 * Copyright (C) 2013 Tobias Brunner
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
feef6373
TB
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17/**
18 * @defgroup pkcs12_decode pkcs12_decode
19 * @{ @ingroup pkcs12
20 */
21
22#ifndef PKCS12_DECODE_H_
23#define PKCS12_DECODE_H_
24
25#include <credentials/builder.h>
26#include <credentials/containers/pkcs12.h>
27
28/**
29 * Load a PKCS#12 container.
30 *
31 * The argument list must contain a single BUILD_BLOB_ASN1_DER argument.
32 *
33 * @param type type of the container, CONTAINER_PKCS12
34 * @param args builder_part_t argument list
35 * @return container, NULL on failure
36 */
37pkcs12_t *pkcs12_decode(container_type_t type, va_list args);
38
39#endif /** PKCS12_DECODE_H_ @}*/