Network
Friday 15 December 2017, 09:00 #1
SNMP - Authentification
Hi,
Good day!
I am stuck in this challenges with the function:
void password_to_key_md5 (
u_char *password, /* IN */
u_int passwordlen, /* IN */
u_char *engineID, /* IN - pointer to snmpEngineID */
u_int engineLength,/* IN - length of snmpEngineID */
u_char *key) /* OUT - pointer to caller 16-octet buffer */
Could someone shed lights on:
1. The engineid, I found this hex string "80001f8880e9bd0c1d12667a5100000000", shall I convert to ASCII?
2. *key, shall I printf the string with hex format?
My program generate the key which length is different, some are less than 12bytes, some are larger than 12bytes :’-(
Thanks in advance.
Regards,
Tony