search for: crypto_auth_certif

Displaying 4 results from an estimated 4 matches for "crypto_auth_certif".

2018 Jun 25
0
[PATCH nbdkit] tls: Implement Pre-Shared Keys (PSK) authentication.
...inttypes.h> #include <string.h> #include <unistd.h> #include <fcntl.h> +#include <limits.h> #include <errno.h> #include <sys/types.h> #include <assert.h> @@ -51,7 +53,12 @@ #include <gnutls/gnutls.h> +static int crypto_auth = 0; +#define CRYPTO_AUTH_CERTIFICATES 1 +#define CRYPTO_AUTH_PSK 2 + static gnutls_certificate_credentials_t x509_creds; +static gnutls_psk_server_credentials_t psk_creds; static void print_gnutls_error (int err, const char *fs, ...) __attribute__((format (printf, 2, 3))); @@ -147,23 +154,9 @@ load_certificates (const char...
2018 Jun 25
2
[PATCH nbdkit] tls: Implement Pre-Shared Keys (PSK) authentication.
This is ready for review but needs a bit more real-world testing before I'd be happy about it going upstream. It also needs tests. It does interoperate with qemu, at least in my limited tests. Rich.
2018 Jun 25
1
[PATCH v2 nbdkit] tls: Implement Pre-Shared Keys (PSK)
v2: * Improved documentation. * Added a test (interop with qemu client).
2018 Jun 28
3
Re: [PATCH nbdkit] tls: Implement Pre-Shared Keys (PSK) authentication.
...s (PSK)"; > + if (r == 0) crypto_auth = CRYPTO_AUTH_PSK; Isn't it more typical to put the 'if' and statement on separate lines? > + } > + else { > + r = start_certificates (); > + what = "X.509 certificates"; > + if (r == 0) crypto_auth = CRYPTO_AUTH_CERTIFICATES; but at least you're doing the one-liner layout consistently. > +++ b/src/main.c > @@ -144,6 +145,7 @@ static const struct option long_options[] = { > { "threads", 1, NULL, 't' }, > { "tls", 1, NULL, 0 }, > { "tls-cer...