Hello,

I finally figured out why my call to generate_ku for authPriv
is failing:

It is this code snippet in keytools.c:

----------
  /*
    * Setup for the transform type.
    */
#ifdef USE_OPENSSL

#ifndef DISABLE_MD5
   if (ISTRANSFORM(hashtype, HMACMD5Auth))
       EVP_DigestInit(ctx, EVP_md5());
   else
#endif
       if (ISTRANSFORM(hashtype, HMACSHA1Auth))
       EVP_DigestInit(ctx, EVP_sha1());
   else {
       free(ctx);
       return (SNMPERR_GENERR);
   }
#else
   MDbegin(&MD);
#endif                          /* USE_OPENSSL */

----------
It would appear that there is NO support for authPriv via
the programming interface....interestingly enough, it works
(i.e., DES) from the command line interface!    I saw the code
in secapi.c. 

SO what gives? I checked the CVS and I seem to have the current
version of keytools.c.

H-E-L-P!!

Thanks!

--daulat

Reply via email to