| 1 |
/* |
| 2 |
* Copyright(c) 2006 to 2020 ZettaScale Technology and others |
| 3 |
* |
| 4 |
* This program and the accompanying materials are made available under the |
| 5 |
* terms of the Eclipse Public License v. 2.0 which is available at |
| 6 |
* http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License |
| 7 |
* v. 1.0 which is available at |
| 8 |
* http://www.eclipse.org/org/documents/edl-v10.php. |
| 9 |
* |
| 10 |
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| 11 |
*/ |
| 12 |
#ifndef SECURITY_CORE_TEST_CERT_UTILS_H_ |
| 13 |
#define SECURITY_CORE_TEST_CERT_UTILS_H_ |
| 14 |
|
| 15 |
#include <stdlib.h> |
| 16 |
|
| 17 |
char * generate_ca(const char *ca_name, const char * ca_priv_key_str, int not_valid_before, int not_valid_after); |
| 18 |
char * generate_identity(const char * ca_cert_str, const char * ca_priv_key_str, const char * name, const char * priv_key_str, int not_valid_before, int not_valid_after, char ** subject); |
| 19 |
|
| 20 |
#endif /* SECURITY_CORE_TEST_CERT_UTILS_H_ */ |