| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
rsa.h
Go to the documentation of this file.
1
12#ifndef __RSA_H__
13#define __RSA_H__
14
15#include <wireshark.h>
16#include <gcrypt.h>
17
18#ifdef HAVE_LIBGNUTLS
19#include <stdio.h>
20#include <gnutls/abstract.h>
21
34WS_DLL_PUBLIC gcry_sexp_t rsa_privkey_to_sexp(gnutls_x509_privkey_t priv_key, char **err);
35
48WS_DLL_PUBLIC gcry_sexp_t rsa_abstract_privkey_to_sexp(gnutls_privkey_t priv_key, char **err);
49
57WS_DLL_PUBLIC gnutls_x509_privkey_t rsa_load_pem_key(FILE* fp, char **err);
58
70WS_DLL_PUBLIC gnutls_x509_privkey_t rsa_load_pkcs12(FILE* fp, const char *cert_passwd, char** err);
71#endif
72
80WS_DLL_PUBLIC void rsa_private_key_free(void * key);
81
82
83#endif /* __RSA_H__ */
rsa_private_key_free
WS_DLL_PUBLIC void rsa_private_key_free(void *key)
Frees an RSA private key object.