| 1 |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 |
// SPDX-License-Identifier: Apache-2.0 OR ISC |
| 3 |
|
| 4 |
#include <openssl/pem.h> |
| 5 |
|
| 6 |
#if defined(__cplusplus) |
| 7 |
extern "C" { |
| 8 |
#endif |
| 9 |
|
| 10 |
// PEM utility functions |
| 11 |
// PEM_proc_type appends a Proc-Type header to |buf|, determined by |type|. |
| 12 |
void PEM_proc_type(char buf[PEM_BUFSIZE], int type); |
| 13 |
|
| 14 |
// PEM_dek_info appends a DEK-Info header to |buf|, with an algorithm of |type| |
| 15 |
// and a single parameter, specified by hex-encoding |len| bytes from |str|. |
| 16 |
void PEM_dek_info(char buf[PEM_BUFSIZE], const char *type, size_t len, |
| 17 |
char *str); |
| 18 |
|
| 19 |
#if defined(__cplusplus) |
| 20 |
} // extern C |
| 21 |
#endif |