summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-03 18:24:43 (GMT)
committer Timothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-03 18:24:43 (GMT)
commitc51a15f04a99ee4226b58a32d0b90402e1d84447 (patch)
treef28d625e37ea0f5d618287ad746b4c1ab4ddc84c
parent5e9959ef854ca8d353b91e9d8305f0fc5e117712 (diff)
downloadtdelibs-c51a15f0.zip
tdelibs-c51a15f0.tar.gz
Fix unused variable compiler warnings
-rw-r--r--tdeio/kssl/ksslkeygen.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/tdeio/kssl/ksslkeygen.cc b/tdeio/kssl/ksslkeygen.cc
index 65bd2d0..86fe471 100644
--- a/tdeio/kssl/ksslkeygen.cc
+++ b/tdeio/kssl/ksslkeygen.cc
@@ -122,7 +122,6 @@ void KSSLKeyGen::slotGenerate() {
int KSSLKeyGen::generateCSR(const TQString& name, const TQString& pass, int bits, int e) {
#ifdef KSSL_HAVE_SSL
KOSSL *kossl = KOSSL::self();
- int rc;
X509_REQ *req = kossl->X509_REQ_new();
if (!req) {
@@ -142,9 +141,9 @@ int KSSLKeyGen::generateCSR(const TQString& name, const TQString& pass, int bits
return -3;
}
- rc = kossl->EVP_PKEY_assign(pkey, EVP_PKEY_RSA, (char *)rsakey);
+ kossl->EVP_PKEY_assign(pkey, EVP_PKEY_RSA, (char *)rsakey);
- rc = kossl->X509_REQ_set_pubkey(req, pkey);
+ kossl->X509_REQ_set_pubkey(req, pkey);
// Set the subject
X509_NAME *n = kossl->X509_NAME_new();
@@ -157,10 +156,10 @@ int KSSLKeyGen::generateCSR(const TQString& name, const TQString& pass, int bits
kossl->X509_NAME_add_entry_by_txt(n, (char*)LN_commonName, MBSTRING_UTF8, (unsigned char*)name.local8Bit().data(), -1, -1, 0);
kossl->X509_NAME_add_entry_by_txt(n, (char*)LN_pkcs9_emailAddress, MBSTRING_UTF8, (unsigned char*)name.local8Bit().data(), -1, -1, 0);
- rc = kossl->X509_REQ_set_subject_name(req, n);
+ kossl->X509_REQ_set_subject_name(req, n);
- rc = kossl->X509_REQ_sign(req, pkey, kossl->EVP_md5());
+ kossl->X509_REQ_sign(req, pkey, kossl->EVP_md5());
// We write it to the database and then the caller can obtain it
// back from there. Yes it's inefficient, but it doesn't happen