#endif
static int xlat_inst[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 }; /* up to 8 for regex */
+char const *radiusd_short_version = RADIUSD_VERSION_STRING;
#ifdef WITH_UNLANG
/** Convert the value on a VALUE_PAIR to string
ssize_t slen;
xlat_exp_t *next;
- if (!p[1] || !strchr("%dlmtDGHISTY", p[1])) {
+ if (!p[1] || !strchr("%dlmtDGHISTYv", p[1])) {
talloc_free(node);
*error = "Invalid variable expansion";
p++;
strftime(str, freespace, "%Y", &ts);
break;
+ case 'v': /* Version of code */
+ snprintf(str, freespace, "%s", radiusd_short_version);
+ break;
+
default:
rad_assert(0 == 1);
break;