yumapro  20.10-12
YumaPro SDK
agt_crypt.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2021, YumaWorks, Inc., All Rights Reserved.
3  *
4  * Unless required by applicable law or agreed to in writing,
5  * software distributed under the License is distributed on an
6  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7  * KIND, either express or implied. See the License for the
8  * specific language governing permissions and limitations
9  * under the License.
10  */
11 #ifndef _H_agt_crypt
12 #define _H_agt_crypt
13 
14 /* FILE: agt_crypt.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
27 /*********************************************************************
28 * *
29 * C H A N G E H I S T O R Y *
30 * *
31 *********************************************************************
32 
33 date init comment
34 ----------------------------------------------------------------------
35 09-nov-15 abb Begun
36 */
37 
38 #ifndef _H_status
39 #include "status.h"
40 #endif
41 
42 #ifndef _H_val
43 #include "val.h"
44 #endif
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /********************************************************************
51 * *
52 * C O N S T A N T S *
53 * *
54 *********************************************************************/
55 
56 
57 /********************************************************************
58 * *
59 * T Y P E S *
60 * *
61 *********************************************************************/
62 
63 
64 /********************************************************************
65 * *
66 * F U N C T I O N S *
67 * *
68 *********************************************************************/
69 
92 extern status_t
93  agt_crypt_handle_hash (val_value_t *val);
94 
95 
106 extern status_t
107  agt_crypt_handle_oc_hash (val_value_t *val);
108 
109 
110 
118 extern status_t
119  agt_crypt_init (void);
120 
126 extern void
127  agt_crypt_cleanup (void);
128 
132 #ifdef __cplusplus
133 } /* end extern 'C' */
134 #endif
135 
136 #endif /* _H_agt_crypt */
xml_strlen
uint32 xml_strlen(const xmlChar *str)
Get the String len for xmlChar.
Definition: xml_util.c:1406
agt_util.h
Utility Functions for NCX Server method routines.
agt_crypt.h
crypt-hash data type handling
xml_strdup
xmlChar * xml_strdup(const xmlChar *copyFrom)
String duplicate for xmlChar.
Definition: xml_util.c:1553
agt_crypt_handle_hash
status_t agt_crypt_handle_hash(val_value_t *val)
Handle a leaf or leaf-list node that is a crypt-hash variable.
Definition: agt_crypt.c:351
val.h
Value Node Basic Support.
agt_crypt_handle_oc_hash
status_t agt_crypt_handle_oc_hash(val_value_t *val)
The node is an openconfig-hashed-value variable.
Definition: agt_crypt.c:373
ERR_NCX_PASSWORD_TOO_SHORT
@ ERR_NCX_PASSWORD_TOO_SHORT
406
Definition: status_enum.h:449
VAL_NAME
#define VAL_NAME(V)
Access the value name.
Definition: val.h:399
ncxmod.h
NCX Module Load Manager.
agt_enable_feature
status_t agt_enable_feature(const xmlChar *modname, const xmlChar *featurename)
Enable a YANG feature in the server.
Definition: agt_util.c:3605
log_info
void void void void void log_info(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_INFO log entry.
log_debug2
void void void void void void void void void log_debug2(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG2 log entry.
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
log_debug4
void void void void void void void void void void void void void log_debug4(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG4 log entry.
ERR_NCX_OPERATION_FAILED
@ ERR_NCX_OPERATION_FAILED
274
Definition: status_enum.h:315
LOGDEBUG2
#define LOGDEBUG2
Check if at least log-level=debug2.
Definition: log.h:292
agt_get_savedevQ
dlq_hdr_t * agt_get_savedevQ(void)
Get the agt_savedevQ pointer.
Definition: agt.c:4747
ERR_NCX_INVALID_VALUE
@ ERR_NCX_INVALID_VALUE
258
Definition: status_enum.h:299
ERR_INTERNAL_MEM
@ ERR_INTERNAL_MEM
003
Definition: status_enum.h:193
xml_strncmp
int xml_strncmp(const xmlChar *s1, const xmlChar *s2, uint32 maxlen)
String compare for xmlChar for at most 'maxlen' xmlChars.
Definition: xml_util.c:1824
ERR_INTERNAL_INIT_SEQ
@ ERR_INTERNAL_INIT_SEQ
007
Definition: status_enum.h:197
agt_crypt_init
status_t agt_crypt_init(void)
Initialize this module.
Definition: agt_crypt.c:390
LOGINFO
#define LOGINFO
Check if at least log-level=info.
Definition: log.h:279
agt.h
Multi-Protocol Network Management Server.
agt_crypt_cleanup
void agt_crypt_cleanup(void)
Cleanup this module.
Definition: agt_crypt.c:426
ERR_NCX_OPERATION_NOT_SUPPORTED
@ ERR_NCX_OPERATION_NOT_SUPPORTED
273
Definition: status_enum.h:314
ncxmod_load_module
status_t ncxmod_load_module(const xmlChar *modname, const xmlChar *revision, dlq_hdr_t *savedevQ, ncx_module_t **retmod)
Determine the location of the specified module and then load it into the system, if not already loade...
Definition: ncxmod.c:4342
LOGDEBUG4
#define LOGDEBUG4
Check if at least log-level=debug4.
Definition: log.h:302
log.h
NCX System Logging Manager.
xml_strcpy
uint32 xml_strcpy(xmlChar *copyTo, const xmlChar *copyFrom)
String copy for xmlChar.
Definition: xml_util.c:1486
agt_get_profile
agt_profile_t * agt_get_profile(void)
Get the server profile struct.
Definition: agt.c:4118
VAL_STR
#define VAL_STR(V)
Access the value as a string ONLY if typ_is_string() is true.
Definition: val.h:464
status.h
Global error messages for status code enumerations.