projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fc68d8
)
Allow extended attrs to have "encrypt=2"
author
Alan T. DeKok
<aland@freeradius.org>
Mon, 21 Mar 2016 19:06:38 +0000
(15:06 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Mon, 21 Mar 2016 19:06:38 +0000
(15:06 -0400)
src/lib/dict.c
patch
|
blob
|
history
diff --git
a/src/lib/dict.c
b/src/lib/dict.c
index
c160752
..
3ae588a
100644
(file)
--- a/
src/lib/dict.c
+++ b/
src/lib/dict.c
@@
-829,7
+829,7
@@
int dict_addattr(char const *name, int attr, unsigned int vendor, PW_TYPE type,
#ifdef WITH_DHCP
|| flags.array
#endif
- || (
flags.encrypt != FLAG_ENCRYPT_NONE
)) {
+ || (
(flags.encrypt != FLAG_ENCRYPT_NONE) && (flags.encrypt != FLAG_ENCRYPT_TUNNEL_PASSWORD)
)) {
fr_strerror_printf("dict_addattr: The \"extended\" attributes MUST NOT have any flags set");
return -1;
}