projects
/
radsecproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Push an ENOMEM error on the connection rather than the context.
[radsecproxy.git]
/
lib
/
tls.c
diff --git
a/lib/tls.c
b/lib/tls.c
index
0b3580c
..
d9eb801
100644
(file)
--- a/
lib/tls.c
+++ b/
lib/tls.c
@@
-14,9
+14,9
@@
#include "../radsecproxy.h"
static struct tls *
#include "../radsecproxy.h"
static struct tls *
-_get_tlsconf (struct rs_con
text *ctx
, const struct rs_realm *realm)
+_get_tlsconf (struct rs_con
nection *conn
, const struct rs_realm *realm)
{
{
- struct tls *c = rs_malloc (ctx, sizeof (struct tls));
+ struct tls *c = rs_malloc (c
onn->c
tx, sizeof (struct tls));
if (c)
{
if (c)
{
@@
-34,7
+34,7
@@
_get_tlsconf (struct rs_context *ctx, const struct rs_realm *realm)
c->policyoids = (char **) NULL; /* NYI */
}
else
c->policyoids = (char **) NULL; /* NYI */
}
else
- rs_err_c
tx_push_fl (ctx
, RSE_NOMEM, __FILE__, __LINE__, NULL);
+ rs_err_c
onn_push_fl (conn
, RSE_NOMEM, __FILE__, __LINE__, NULL);
return c;
}
return c;
}
@@
-49,7
+49,7
@@
rs_tls_init (struct rs_connection *conn)
assert (conn->ctx);
ctx = conn->ctx;
assert (conn->ctx);
ctx = conn->ctx;
- tlsconf = _get_tlsconf (c
tx
, conn->active_peer->realm);
+ tlsconf = _get_tlsconf (c
onn
, conn->active_peer->realm);
if (!tlsconf)
return -1;
ssl_ctx = tlsgetctx (RADPROT_TLS, tlsconf);
if (!tlsconf)
return -1;
ssl_ctx = tlsgetctx (RADPROT_TLS, tlsconf);