root / src / libstrongswan / asn1 / pem.h @ 1bfb8007c22e14025a7308e371851130df94e93e
History | View | Annotate | Download (898 Bytes)
| 1 | /*
|
|---|---|
| 2 | * Copyright (C) 2001-2008 Andreas Steffen |
| 3 | * |
| 4 | * Hochschule fuer Technik Rapperswil |
| 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 | #ifndef PEM_H_
|
| 18 | #define PEM_H_
|
| 19 | |
| 20 | #include <stdio.h> |
| 21 | |
| 22 | #include <library.h> |
| 23 | |
| 24 | status_t pem_to_bin(chunk_t *blob, chunk_t passphrase, bool *pgp);
|
| 25 | |
| 26 | bool pem_asn1_load_file(char *filename, chunk_t *passphrase, chunk_t *blob, |
| 27 | bool *pgp);
|
| 28 | |
| 29 | #endif /*PEM_H_ @} */ |