aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/credentials/auth_cfg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/credentials/auth_cfg.h')
-rw-r--r--src/libstrongswan/credentials/auth_cfg.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libstrongswan/credentials/auth_cfg.h b/src/libstrongswan/credentials/auth_cfg.h
index f29b01bd5..79ca95820 100644
--- a/src/libstrongswan/credentials/auth_cfg.h
+++ b/src/libstrongswan/credentials/auth_cfg.h
@@ -1,6 +1,6 @@
/*
+ * Copyright (C) 2008-2012 Tobias Brunner
* Copyright (C) 2007-2009 Martin Willi
- * Copyright (C) 2008 Tobias Brunner
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
@@ -182,6 +182,15 @@ struct auth_cfg_t {
auth_rule_t rule, ...);
/**
+ * Replace the value of the first rule with the given type.
+ *
+ * @param rule rule type
+ * @param ... associated value to rule
+ * @return TRUE if the rule was found and the value replaced
+ */
+ bool (*replace_value)(auth_cfg_t *this, auth_rule_t rule, ...);
+
+ /**
* Check if a used config fulfills a set of configured constraints.
*
* @param constraints required authorization rules