diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:27:01 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:34:17 +0000 |
| commit | c6cb4ba159a8916243d7ac5a5c4e8d13942baf99 (patch) | |
| tree | 5183b6cb982dadb2b91987ff7b69486ea8d811df /modules/extra | |
| parent | e341cac8d6565044f7390852afb40c5e388121df (diff) | |
Fix some coding style issues.
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/ldap.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/ssl_gnutls.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/modules/extra/ldap.cpp b/modules/extra/ldap.cpp index 58ecefd6d..bcd4b8406 100644 --- a/modules/extra/ldap.cpp +++ b/modules/extra/ldap.cpp @@ -220,7 +220,7 @@ public: private: #ifdef _WIN32 // Windows LDAP does not implement this so we need to do it. - int ldap_initialize(LDAP** ldap, const char* url) + int ldap_initialize(LDAP **ldap, const char *url) { URL_COMPONENTS urlComponents; memset(&urlComponents, 0, sizeof(urlComponents)); @@ -508,7 +508,7 @@ public: } } - LDAP* GetConnection() + LDAP *GetConnection() { return con; } diff --git a/modules/extra/ssl_gnutls.cpp b/modules/extra/ssl_gnutls.cpp index fdf5b1bff..520f877c0 100644 --- a/modules/extra/ssl_gnutls.cpp +++ b/modules/extra/ssl_gnutls.cpp @@ -39,7 +39,7 @@ class SSLSocketIO final { public: gnutls_session_t sess = nullptr; - GnuTLS::X509CertCredentials* mycreds; + GnuTLS::X509CertCredentials *mycreds; /** Constructor */ @@ -181,7 +181,7 @@ namespace GnuTLS throw ConfigException("Error loading private key: " + Anope::string(gnutls_strerror(ret))); } - gnutls_x509_privkey_t& get() { return key.key; } + gnutls_x509_privkey_t &get() { return key.key; } }; class X509CertList final @@ -219,7 +219,7 @@ namespace GnuTLS gnutls_x509_crt_deinit(*i); } - gnutls_x509_crt_t* raw() { return &certs[0]; } + gnutls_x509_crt_t *raw() { return &certs[0]; } unsigned int size() const { return certs.size(); } }; @@ -236,7 +236,7 @@ namespace GnuTLS return ret; } - static int cert_callback(gnutls_session_t sess, const gnutls_datum_t* req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t* sign_algos, int sign_algos_length, gnutls_retr2_st* st); + static int cert_callback(gnutls_session_t sess, const gnutls_datum_t *req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t *sign_algos, int sign_algos_length, gnutls_retr2_st *st); public: X509CertList certs; @@ -628,7 +628,7 @@ SSLSocketIO::SSLSocketIO() : mycreds(me->cred) mycreds->incrref(); } -int GnuTLS::X509CertCredentials::cert_callback(gnutls_session_t sess, const gnutls_datum_t* req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t* sign_algos, int sign_algos_length, gnutls_retr2_st* st) +int GnuTLS::X509CertCredentials::cert_callback(gnutls_session_t sess, const gnutls_datum_t *req_ca_rdn, int nreqs, const gnutls_pk_algorithm_t *sign_algos, int sign_algos_length, gnutls_retr2_st *st) { st->cert_type = GNUTLS_CRT_X509; st->key_type = GNUTLS_PRIVKEY_X509; |
