* Added a "user" parameter to plugin_credentials() restconf callback.
To enable authentication and in preparation for access control a la RFC 6536. * yang string length "max" keyword set to MAXPATHLEN
This commit is contained in:
parent
3ffe68d124
commit
e40d785d5c
12 changed files with 514 additions and 34 deletions
|
|
@ -77,7 +77,10 @@ typedef int (plgexit_t)(clicon_handle); /* Plugin exit */
|
|||
* Returns 0 if credentials OK, -1 if failed
|
||||
*/
|
||||
#define PLUGIN_CREDENTIALS "plugin_credentials"
|
||||
typedef int (plgcredentials_t)(clicon_handle, void *); /* Plugin credentials */
|
||||
/* Plugin credentials
|
||||
* username should be freed after use
|
||||
*/
|
||||
typedef int (plgcredentials_t)(clicon_handle, void *, char **username);
|
||||
|
||||
/* Find a function in global namespace or a plugin. XXX clicon internal */
|
||||
void *clicon_find_func(clicon_handle h, char *plugin, char *func);
|
||||
|
|
|
|||
|
|
@ -1704,6 +1704,7 @@ xml_apply_ancestor(cxobj *xn,
|
|||
* @param[out] cvp CLIgen variable containing the parsed value
|
||||
* @note free cv with cv_free after use.
|
||||
* @see xml_body_int32 etc, for type-specific parse functions
|
||||
* @note range check failure returns 0
|
||||
*/
|
||||
int
|
||||
xml_body_parse(cxobj *xb,
|
||||
|
|
@ -1751,6 +1752,7 @@ xml_body_parse(cxobj *xb,
|
|||
* alloc error.
|
||||
* @note extend to all other cligen var types and generalize
|
||||
* @note use yang type info?
|
||||
* @note range check failure returns 0
|
||||
*/
|
||||
int
|
||||
xml_body_int32(cxobj *xb,
|
||||
|
|
@ -1774,6 +1776,7 @@ xml_body_int32(cxobj *xb,
|
|||
* alloc error.
|
||||
* @note extend to all other cligen var types and generalize
|
||||
* @note use yang type info?
|
||||
* @note range check failure returns 0
|
||||
*/
|
||||
int
|
||||
xml_body_uint32(cxobj *xb,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue