X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=userapps%2Fopensource%2Fnet-snmp%2Finclude%2Fnet-snmp%2Flibrary%2Fkeytools.h;fp=userapps%2Fopensource%2Fnet-snmp%2Finclude%2Fnet-snmp%2Flibrary%2Fkeytools.h;h=0000000000000000000000000000000000000000;hb=cf3b25a5003e531e4599b2a56fa007f272198570;hp=2276216a5246b0306f58a7fd99eaabab1992fcfc;hpb=59e02c1be2c9b373846b0789fbd5b7ef46f0927f;p=bcm963xx.git diff --git a/userapps/opensource/net-snmp/include/net-snmp/library/keytools.h b/userapps/opensource/net-snmp/include/net-snmp/library/keytools.h deleted file mode 100755 index 2276216a..00000000 --- a/userapps/opensource/net-snmp/include/net-snmp/library/keytools.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * keytools.h - */ - -#ifndef _KEYTOOLS_H -#define _KEYTOOLS_H - -#ifdef __cplusplus -extern "C" { -#endif - - -#define USM_LENGTH_EXPANDED_PASSPHRASE (1024 * 1024) /* 1Meg. */ - -#define USM_LENGTH_KU_HASHBLOCK 64 /* In bytes. */ - -#define USM_LENGTH_P_MIN 8 /* In characters. */ - /* - * Recommended practice given in , - * * Section 11.2 "Defining Users". Move into cmdline app argument - * * parsing, and out of the internal routine? XXX - */ - - /* - * Prototypes.h - */ - int generate_Ku(const oid * hashtype, u_int hashtype_len, - u_char * P, size_t pplen, - u_char * Ku, size_t * kulen); - - int generate_kul(const oid * hashtype, u_int hashtype_len, - u_char * engineID, size_t engineID_len, - u_char * Ku, size_t ku_len, - u_char * Kul, size_t * kul_len); - - int encode_keychange(const oid * hashtype, - u_int hashtype_len, u_char * oldkey, - size_t oldkey_len, u_char * newkey, - size_t newkey_len, u_char * kcstring, - size_t * kcstring_len); - - int decode_keychange(const oid * hashtype, - u_int hashtype_len, u_char * oldkey, - size_t oldkey_len, u_char * kcstring, - size_t kcstring_len, u_char * newkey, - size_t * newkey_len); - - - /* - * All functions devolve to the following block if we can't do cryptography - */ -#define _KEYTOOLS_NOT_AVAILABLE \ -{ \ - return SNMPERR_KT_NOT_AVAILABLE; \ -} - -#ifdef __cplusplus -} -#endif -#endif /* _KEYTOOLS_H */