summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-05 12:42:18 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-06 12:58:33 +0200
commit5336044c7626e8db065594ce8ad317e6571c3b46 (patch)
tree71047a4a7bc53e0d234f1d9da7fac25dd82f58ad
parent47564feb73a694fe912e1b54d3a6b68aa4568f63 (diff)
downloadgnutls-5336044c7626e8db065594ce8ad317e6571c3b46.tar.gz
gnutlsxx.cpp: fixed misleading indentation issues
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/gnutlsxx.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/gnutlsxx.cpp b/lib/gnutlsxx.cpp
index 8fd1483e42..b91c994436 100644
--- a/lib/gnutlsxx.cpp
+++ b/lib/gnutlsxx.cpp
@@ -217,7 +217,7 @@ namespace gnutls
{
int ret = gnutls_session_is_resumed (s);
- return (ret != 0);
+ return (ret != 0);
}
bool session::get_peers_certificate (std::vector < gnutls_datum_t >
@@ -226,7 +226,7 @@ namespace gnutls
const gnutls_datum_t *certs;
unsigned int certs_size;
- certs = gnutls_certificate_get_peers (s, &certs_size);
+ certs = gnutls_certificate_get_peers (s, &certs_size);
if (certs == NULL)
return false;
@@ -234,7 +234,7 @@ namespace gnutls
for (unsigned int i = 0; i < certs_size; i++)
out_certs.push_back (certs[i]);
- return true;
+ return true;
}
bool session::get_peers_certificate (const gnutls_datum_t ** certs,
@@ -251,10 +251,11 @@ namespace gnutls
{
const gnutls_datum_t *d;
- d = gnutls_certificate_get_ours (s);
+ d = gnutls_certificate_get_ours (s);
if (d == NULL)
throw (exception (GNUTLS_E_INVALID_REQUEST));
- cert = *d;
+
+ cert = *d;
}
time_t session::get_peers_certificate_activation_time () const