stub_libsslutil.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #include "squid.h"
10 #include "fatal.h"
11 
12 /* Unused (XXX) Stub File for the ssl/libsslutil.la convenience library */
13 
14 #define STUB_API "ssl/libsslutil.la"
15 #include "tests/STUB.h"
16 
17 #include "ssl/crtd_message.h"
19 Ssl::CrtdMessage::ParseResult Ssl::CrtdMessage::parse(const char * buffer, size_t len) STUB_RETVAL(ERROR)
20 std::string const & Ssl::CrtdMessage::getBody() const STUB_RETREF(std::string)
21 std::string const & Ssl::CrtdMessage::getCode() const STUB_RETREF(std::string)
22 void Ssl::CrtdMessage::setBody(std::string const & aBody) STUB
23 void Ssl::CrtdMessage::setCode(std::string const & aCode) STUB
24 std::string Ssl::CrtdMessage::compose() const STUB_RETVAL(std::string())
25 void Ssl::CrtdMessage::clear() STUB
26 void Ssl::CrtdMessage::parseBody(BodyParams & map, std::string & other_part) const STUB
27 void Ssl::CrtdMessage::composeBody(BodyParams const & map, std::string const & other_part) STUB
28 
29 #include "ssl/gadgets.h"
30 X509_REQ * Ssl::createNewX509Request(Security::PrivateKeyPointer const &, const char *) STUB_RETVAL(nullptr)
31 bool Ssl::writeCertAndPrivateKeyToMemory(Security::CertPointer const &, Security::PrivateKeyPointer const &, std::string &) STUB_RETVAL(false)
32 bool Ssl::writeCertAndPrivateKeyToFile(Security::CertPointer const &, Security::PrivateKeyPointer const &, char const *) STUB_RETVAL(false)
33 bool Ssl::readCertAndPrivateKeyFromMemory(Security::CertPointer &, Security::PrivateKeyPointer &, char const *) STUB_RETVAL(false)
34 X509 * Ssl::signRequest(X509_REQ_Pointer const &, Security::CertPointer const &, Security::PrivateKeyPointer const &, ASN1_TIME *, BIGNUM const *) STUB_RETVAL(nullptr)
35 bool Ssl::generateSslCertificateAndPrivateKey(char const *, Security::CertPointer const &, Security::PrivateKeyPointer const &, Security::CertPointer &, Security::PrivateKeyPointer &, BIGNUM const *) STUB_RETVAL(false)
36 void Ssl::readCertAndPrivateKeyFromFiles(Security::CertPointer &, Security::PrivateKeyPointer &, char const *, char const *) STUB
37 bool Ssl::sslDateIsInTheFuture(char const *) STUB_RETVAL(false)
39 
40 #include "ssl/helper.h"
42 void Ssl::Helper::Shutdown() STUB
43 void Ssl::Helper::Submit(Ssl::CrtdMessage const & message, HLPCB * callback, void *data) STUB
44 
#define STUB_RETVAL(x)
Definition: STUB.h:42
Security::LockingPointer< X509, X509_free_cpp, HardFun< int, X509 *, X509_up_ref > > CertPointer
Definition: forward.h:88
static struct node * parse(FILE *fp)
Definition: parse.c:965
static void Init()
Init helper structure.
Definition: helper.cc:81
Definition: Xaction.cc:39
#define STUB_RETREF(x)
Definition: STUB.h:52
std::unique_ptr< char, HardFun< void, char *, &OPENSSL_free_for_c_strings > > UniqueCString
Definition: gadgets.h:84
helper protocol primitives
Definition: ChildConfig.h:12
#define STUB
macro to stub a void function.
Definition: STUB.h:34
UniqueCString OneLineSummary(X509_NAME &)
a RAII wrapper for the memory-allocating flavor of X509_NAME_oneline()
Definition: gadgets.cc:879
bool sslDateIsInTheFuture(char const *date)
Definition: gadgets.cc:884
std::unique_ptr< X509_REQ, HardFun< void, X509_REQ *, &X509_REQ_free > > X509_REQ_Pointer
Definition: gadgets.h:69
bool writeCertAndPrivateKeyToMemory(Security::CertPointer const &cert, Security::PrivateKeyPointer const &pkey, std::string &bufferToWrite)
Definition: gadgets.cc:99
void HLPCB(void *, const Helper::Reply &)
Definition: forward.h:33
Network/connection security abstraction layer.
Definition: Connection.h:33
CrtdMessage(MessageKind kind)
Definition: crtd_message.cc:19
bool readCertAndPrivateKeyFromMemory(Security::CertPointer &cert, Security::PrivateKeyPointer &pkey, char const *bufferToRead)
Definition: gadgets.cc:147

 

Introduction

Documentation

Support

Miscellaneous