Browse Source

Fix unused variable compiler warnings

pull/1/head
Timothy Pearson 3 years ago
parent
commit
c51a15f04a
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      tdeio/kssl/ksslkeygen.cc

+ 4
- 5
tdeio/kssl/ksslkeygen.cc View File

@@ -122,7 +122,6 @@ void KSSLKeyGen::slotGenerate() {
122 122
 int KSSLKeyGen::generateCSR(const TQString& name, const TQString& pass, int bits, int e) {
123 123
 #ifdef KSSL_HAVE_SSL
124 124
 	KOSSL *kossl = KOSSL::self();
125
-	int rc;
126 125
 
127 126
 	X509_REQ *req = kossl->X509_REQ_new();
128 127
 	if (!req) {
@@ -142,9 +141,9 @@ int KSSLKeyGen::generateCSR(const TQString& name, const TQString& pass, int bits
142 141
 		return -3;
143 142
 	}
144 143
 
145
-	rc = kossl->EVP_PKEY_assign(pkey, EVP_PKEY_RSA, (char *)rsakey);
144
+	kossl->EVP_PKEY_assign(pkey, EVP_PKEY_RSA, (char *)rsakey);
146 145
 
147
-	rc = kossl->X509_REQ_set_pubkey(req, pkey);
146
+	kossl->X509_REQ_set_pubkey(req, pkey);
148 147
 
149 148
 	// Set the subject
150 149
 	X509_NAME *n = kossl->X509_NAME_new();
@@ -157,10 +156,10 @@ int KSSLKeyGen::generateCSR(const TQString& name, const TQString& pass, int bits
157 156
 	kossl->X509_NAME_add_entry_by_txt(n, (char*)LN_commonName, MBSTRING_UTF8, (unsigned char*)name.local8Bit().data(), -1, -1, 0);
158 157
 	kossl->X509_NAME_add_entry_by_txt(n, (char*)LN_pkcs9_emailAddress, MBSTRING_UTF8, (unsigned char*)name.local8Bit().data(), -1, -1, 0);
159 158
 	
160
-	rc = kossl->X509_REQ_set_subject_name(req, n);
159
+	kossl->X509_REQ_set_subject_name(req, n);
161 160
 
162 161
 
163
-	rc = kossl->X509_REQ_sign(req, pkey, kossl->EVP_md5());
162
+	kossl->X509_REQ_sign(req, pkey, kossl->EVP_md5());
164 163
 
165 164
 	// We write it to the database and then the caller can obtain it
166 165
 	// back from there.  Yes it's inefficient, but it doesn't happen

Loading…
Cancel
Save