1 /* Copyright 2012 NORDUnet A/S. All rights reserved.
2 See the file COPYING for licensing information. */
5 #include <radsec/radsec.h>
6 #include <radsec/radsec-impl.h>
10 rs_strdup (struct rs_context *ctx, const char *s)
12 char *buf = rs_calloc (ctx, 1, strlen (s) + 1);
15 return strcpy (buf, s);
17 rs_err_ctx_push (ctx, RSE_NOMEM, NULL);