makecert.h (1447B)
1/** 2 * WinPR: Windows Portable Runtime 3 * makecert replacement 4 * 5 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20#ifndef MAKECERT_TOOL_H 21#define MAKECERT_TOOL_H 22 23#include <winpr/winpr.h> 24#include <winpr/wtypes.h> 25#ifdef __cplusplus 26extern "C" 27{ 28#endif 29 30 typedef struct _MAKECERT_CONTEXT MAKECERT_CONTEXT; 31 32 WINPR_API int makecert_context_process(MAKECERT_CONTEXT* context, int argc, char** argv); 33 34 WINPR_API int makecert_context_set_output_file_name(MAKECERT_CONTEXT* context, char* name); 35 WINPR_API int makecert_context_output_certificate_file(MAKECERT_CONTEXT* context, char* path); 36 WINPR_API int makecert_context_output_private_key_file(MAKECERT_CONTEXT* context, char* path); 37 38 WINPR_API MAKECERT_CONTEXT* makecert_context_new(void); 39 WINPR_API void makecert_context_free(MAKECERT_CONTEXT* context); 40 41#ifdef __cplusplus 42} 43#endif 44 45#endif /* MAKECERT_TOOL_H */