yumapro  20.10-10
YumaPro SDK
Encrypted Password Management

IANA crypt-hash and openconfig-hashed-value Password Support. More...

Collaboration diagram for Encrypted Password Management:

Functions

status_t agt_crypt_handle_hash (val_value_t *val)
 Handle a leaf or leaf-list node that is a crypt-hash variable. More...
 
status_t agt_crypt_handle_oc_hash (val_value_t *val)
 The node is an openconfig-hashed-value variable. More...
 
status_t agt_crypt_init (void)
 Initialize this module. More...
 
void agt_crypt_cleanup (void)
 Cleanup this module. More...
 

Detailed Description

IANA crypt-hash and openconfig-hashed-value Password Support.

The crypt and crypt_r functions are used to create 1-way hash values and manage them within the system.

Function Documentation

void agt_crypt_cleanup ( void  )

Cleanup this module.

Called by the server during shutdown

status_t agt_crypt_handle_hash ( val_value_t val)

Handle a leaf or leaf-list node that is a crypt-hash variable.

Check if it is in the cleartext form $0$cleartextpassword If so, then the hash needs to be generated and stored instead

Parameters
valval_value_t from the PDU to check and possibly alter
Return values
val->v.strmay be freed and reallocated
Returns
status
status_t agt_crypt_handle_oc_hash ( val_value_t val)

The node is an openconfig-hashed-value variable.

Check if it is in the cleartext form cleartextpassword If so, then the hash needs to be generated and stored instead

Parameters
valval_value_t from the PDU to check and possibly alter
Return values
val->v.strmay be freed and reallocated
Returns
status
status_t agt_crypt_init ( void  )

Initialize this module.

Load the iana-crypt-hash module

Returns
status

Here is the call graph for this function: