summaryrefslogtreecommitdiff
path: root/lib/gnutls_rsa_export.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-03-13 09:14:35 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-03-13 09:14:35 +0000
commit5e78e8f167091a9699247469232e9f67faf2d8a0 (patch)
treebf70a622469f811054a912a4c5af167b8dd467cf /lib/gnutls_rsa_export.c
parent35bd405689b5c849b5f34c976ff7d1090b6a07f4 (diff)
downloadgnutls-5e78e8f167091a9699247469232e9f67faf2d8a0.tar.gz
* Added functions gnutls_rsa_params_cpy(), gnutls_dh_params_cpy()
and gnutls_x509_privkey_cpy().
Diffstat (limited to 'lib/gnutls_rsa_export.c')
-rw-r--r--lib/gnutls_rsa_export.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/gnutls_rsa_export.c b/lib/gnutls_rsa_export.c
index 05e82535ef..fa1ed8b853 100644
--- a/lib/gnutls_rsa_export.c
+++ b/lib/gnutls_rsa_export.c
@@ -29,6 +29,7 @@
#include <gnutls_datum.h>
#include <gnutls_rsa_export.h>
#include "x509/x509.h"
+#include "x509/privkey.h"
#include "debug.h"
/* This function takes a number of bits and returns a supported
@@ -202,6 +203,20 @@ void gnutls_rsa_params_deinit(gnutls_rsa_params rsa_params)
}
/**
+ * gnutls_rsa_params_cpy - This function will copy an RSA parameters structure
+ * @dst: Is the destination structure, which should be initialized.
+ * @src: Is the source structure
+ *
+ * This function will copy the RSA parameters structure from source
+ * to destination.
+ *
+ **/
+int gnutls_rsa_params_cpy(gnutls_rsa_params dst, gnutls_rsa_params src)
+{
+ return gnutls_x509_privkey_cpy( dst, src);
+}
+
+/**
* gnutls_rsa_params_generate2 - This function will generate temporary RSA parameters
* @params: The structure where the parameters will be stored
* @bits: is the prime's number of bits