Browse Source

Fix missing return values in kopenssl.

Signed-off-by: François Andriot <francois.andriot@free.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/56/head
François Andriot 10 months ago
committed by Slávek Banko
parent
commit
a6bbb9e7bc
Signed by: SlavekB GPG Key ID: 608F5293A04BE668
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      tdeio/kssl/kopenssl.cc

+ 7
- 0
tdeio/kssl/kopenssl.cc View File

@@ -2039,6 +2039,7 @@ STACK_OF(X509_OBJECT)* KOpenSSLProxy::X509_STORE_get0_objects(X509_STORE *v) {
return v->objs;
#endif
kdWarning() << "X509_STORE_get0_objects not defined!" << endl;
return 0L;
}

X509_LOOKUP_TYPE KOpenSSLProxy::X509_OBJECT_get_type(const X509_OBJECT *a) {
@@ -2047,6 +2048,11 @@ X509_LOOKUP_TYPE KOpenSSLProxy::X509_OBJECT_get_type(const X509_OBJECT *a) {
return a->type;
#endif
kdWarning() << "X509_OBJECT_get_type not defined!" << endl;
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
return X509_LU_NONE;
#else
return 0;
#endif
}

X509* KOpenSSLProxy::X509_OBJECT_get0_X509(const X509_OBJECT *a) {
@@ -2055,6 +2061,7 @@ X509* KOpenSSLProxy::X509_OBJECT_get0_X509(const X509_OBJECT *a) {
return a->data.x509;
#endif
kdWarning() << "X509_OBJECT_get0_X509 not defined!" << endl;
return 0L;
}




Loading…
Cancel
Save