summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/rsa-decrypt.c5
-rw-r--r--examples/rsa-encrypt.c5
-rw-r--r--examples/rsa-keygen.c5
3 files changed, 6 insertions, 9 deletions
diff --git a/examples/rsa-decrypt.c b/examples/rsa-decrypt.c
index 52b8b4c7..eac6fdd5 100644
--- a/examples/rsa-decrypt.c
+++ b/examples/rsa-decrypt.c
@@ -32,9 +32,6 @@
#include <stdio.h>
#include <string.h>
-/* For getopt */
-#include <unistd.h>
-
/* string.h must be included before gmp.h */
#include "aes.h"
#include "bignum.h"
@@ -48,6 +45,8 @@
#include "io.h"
#include "rsa-session.h"
+#include "getopt.h"
+
void
rsa_session_set_decrypt_key(struct rsa_session *ctx,
const struct rsa_session_info *key)
diff --git a/examples/rsa-encrypt.c b/examples/rsa-encrypt.c
index cb0e8209..7bfb6f97 100644
--- a/examples/rsa-encrypt.c
+++ b/examples/rsa-encrypt.c
@@ -32,9 +32,6 @@
#include <stdio.h>
#include <string.h>
-/* For getopt */
-#include <unistd.h>
-
/* string.h must be included before gmp.h */
#include "bignum.h"
#include "buffer.h"
@@ -45,6 +42,8 @@
#include "io.h"
#include "rsa-session.h"
+#include "getopt.h"
+
void
rsa_session_set_encrypt_key(struct rsa_session *ctx,
const struct rsa_session_info *key)
diff --git a/examples/rsa-keygen.c b/examples/rsa-keygen.c
index 675f13f4..b9d4ff9d 100644
--- a/examples/rsa-keygen.c
+++ b/examples/rsa-keygen.c
@@ -32,9 +32,6 @@
#include <stdio.h>
#include <string.h>
-/* For getopt */
-#include <unistd.h>
-
#include "buffer.h"
#include "rsa.h"
#include "sexp.h"
@@ -42,6 +39,8 @@
#include "io.h"
+#include "getopt.h"
+
#define KEYSIZE 900
#define ESIZE 30