FreeRDP
makecert.h
1 
20 #ifndef MAKECERT_TOOL_H
21 #define MAKECERT_TOOL_H
22 
23 #include <winpr/winpr.h>
24 #include <winpr/wtypes.h>
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29 
30  typedef struct S_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,
35  const char* name);
36  WINPR_API int makecert_context_output_certificate_file(MAKECERT_CONTEXT* context,
37  const char* path);
38  WINPR_API int makecert_context_output_private_key_file(MAKECERT_CONTEXT* context,
39  const char* path);
40 
41  WINPR_API void makecert_context_free(MAKECERT_CONTEXT* context);
42 
43  WINPR_ATTR_MALLOC(makecert_context_free, 1)
44  WINPR_API MAKECERT_CONTEXT* makecert_context_new(void);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* MAKECERT_TOOL_H */