x509_r2x.c (55714) | x509_r2x.c (59191) |
---|---|
1/* crypto/x509/x509_r2x.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 68 unchanged lines hidden (view full) --- 77 goto err; 78 } 79 80 /* duplicate the request */ 81 xi=ret->cert_info; 82 83 if (sk_X509_ATTRIBUTE_num(r->req_info->attributes) != 0) 84 { | 1/* crypto/x509/x509_r2x.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 68 unchanged lines hidden (view full) --- 77 goto err; 78 } 79 80 /* duplicate the request */ 81 xi=ret->cert_info; 82 83 if (sk_X509_ATTRIBUTE_num(r->req_info->attributes) != 0) 84 { |
85 if ((xi->version=ASN1_INTEGER_new()) == NULL) goto err; | 85 if ((xi->version=M_ASN1_INTEGER_new()) == NULL) goto err; |
86 if (!ASN1_INTEGER_set(xi->version,2)) goto err; 87/* xi->extensions=ri->attributes; <- bad, should not ever be done 88 ri->attributes=NULL; */ 89 } 90 91 xn=X509_REQ_get_subject_name(r); 92 X509_set_subject_name(ret,X509_NAME_dup(xn)); 93 X509_set_issuer_name(ret,X509_NAME_dup(xn)); --- 17 unchanged lines hidden --- | 86 if (!ASN1_INTEGER_set(xi->version,2)) goto err; 87/* xi->extensions=ri->attributes; <- bad, should not ever be done 88 ri->attributes=NULL; */ 89 } 90 91 xn=X509_REQ_get_subject_name(r); 92 X509_set_subject_name(ret,X509_NAME_dup(xn)); 93 X509_set_issuer_name(ret,X509_NAME_dup(xn)); --- 17 unchanged lines hidden --- |