diff options
Diffstat (limited to 'tdeio/kssl')
-rw-r--r-- | tdeio/kssl/ksslkeygen.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tdeio/kssl/ksslkeygen.cc b/tdeio/kssl/ksslkeygen.cc index 65bd2d0a9..86fe4717d 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 |