I forgot to mention that I tried using below function. but it returns
0 as the chain length
major_status = gss_inquire_cred_by_oid(
&minor_status,
credential_handle,
&cert_chain_oid,
&cert_chain_buffers);
chain_length=cert_chain_buffers->count
where:
gss_OID_desc cert_chain_oid = {11, "\x2b\x06\x01\x04\x01\x9b
\x50\x01\x01\x01\x08"};
and I verified that credential_handle is not NULL
Also, I am not sure how this value "\x2b\x06\x01\x04\x01\x9b
\x50\x01\x01\x01\x08" gets determined. I picked this up from the
function that gets the cert chain length
from context.
-Neha
On Aug 20, 2008, at 10:15 AM, Neha Sharma wrote:
Hi
I see that there is a globus function that lets you find out the
length of certificate chain from a context handle.
gss_inquire_sec_context_by_oid(
&minor_status,
context_handle,
&cert_chain_oid,
&cert_chain_buffers);
Is there a similar function to find out the length of certificate
chain from a credential handle?
Thanks
-Neha