Title: OBJ_obj2nid() unexpected behaviour

Hi

I am testing openssl 0.9.7c on win2k.
I had to add a few custom OID's to objects.txt file after which I performed the following steps from openssl/crypto/objects directory:

      perl objects.pl objects.txt obj_mac.num obj_mac.h
      perl obj_dat.pl obj_mac.h obj_dat.h

When calling OBJ_obj2nid() on an object with nid 0, the value returned was 404 whereas I was expecting it to return 0.
I came across this issue because of a bug in one of my functions that called RSA_sign() with type 0 and then RSA_verify() with dtype 0.

The RSA_Sign function call was successful and I beleive it encoded 0 for the signature algorithm. But RSA_verify call failed because the function failed to return 0 for nid for an object with an NID of 0.

Is there something wrong that I did with my objects files/implementation or is it a known issue?

Thank you

Himanshu Soni


Reply via email to