projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused '#include's.
[tinc]
/
src
/
openssl
/
rsagen.c
diff --git
a/src/openssl/rsagen.c
b/src/openssl/rsagen.c
index
79127f6
..
3dd34e2
100644
(file)
--- a/
src/openssl/rsagen.c
+++ b/
src/openssl/rsagen.c
@@
-17,8
+17,6
@@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "../system.h"
-
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/err.h>
@@
-27,7
+25,6
@@
typedef RSA rsa_t;
#include "../logger.h"
#include "../rsagen.h"
#include "../logger.h"
#include "../rsagen.h"
-#include "../xalloc.h"
/* This function prettyprints the key generation process */
/* This function prettyprints the key generation process */
@@
-72,16
+69,6
@@
static int indicator(int a, int b, BN_GENCB *cb) {
// Generate RSA key
// Generate RSA key
-#ifndef HAVE_BN_GENCB_NEW
-BN_GENCB *BN_GENCB_new(void) {
- return xzalloc(sizeof(BN_GENCB));
-}
-
-void BN_GENCB_free(BN_GENCB *cb) {
- free(cb);
-}
-#endif
-
rsa_t *rsa_generate(size_t bits, unsigned long exponent) {
BIGNUM *bn_e = BN_new();
rsa_t *rsa = RSA_new();
rsa_t *rsa_generate(size_t bits, unsigned long exponent) {
BIGNUM *bn_e = BN_new();
rsa_t *rsa = RSA_new();