Thanks, the current problem was not to set that attribute, but not
to break in the pkcs7 or smime routines when you get a message
having this attribute.
>
> If you are interested maybe you can use the IBM Jonah Implementation?
>
> This is an excerpt of a PKCS7 structure implemented in the Jonah ASN1
> Framework...
>
The 'fix/hack' is to change the default sections in d2i and i2d ASN1_TYPE to
do the same as with sequence and set. At least pkcs7 can now copy the data,
and the smime code starts complaining about the certificate chain, which
is the expected behaviour.
diff -c a_type.c ../../../openssl-0.9.6-beta1/crypto/asn1/a_type.c
*** a_type.c Wed Sep 20 10:46:20 2000
--- ../../../openssl-0.9.6-beta1/crypto/asn1/a_type.c Mon Sep 11 14:42:05 2000
***************
*** 123,129 ****
break;
case V_ASN1_SET:
case V_ASN1_SEQUENCE:
- default:
if (a->value.set == NULL)
r=0;
else
--- 123,128 ----
***************
*** 246,252 ****
break;
case V_ASN1_SET:
case V_ASN1_SEQUENCE:
- default :
/* Sets and sequences are left complete */
if ((ret->value.set=ASN1_STRING_new()) == NULL) goto err;
ret->value.set->type=tag;
--- 245,250 ----
***************
*** 254,262 ****
if (!ASN1_STRING_set(ret->value.set,p,(int)len)) goto err;
p+=len;
break;
! /* default:
ASN1err(ASN1_F_D2I_ASN1_TYPE,ASN1_R_BAD_TYPE);
! goto err; */
}
ret->type=tag;
--- 252,260 ----
if (!ASN1_STRING_set(ret->value.set,p,(int)len)) goto err;
p+=len;
break;
! default:
ASN1err(ASN1_F_D2I_ASN1_TYPE,ASN1_R_BAD_TYPE);
! goto err;
}
ret->type=tag;
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]