Skip to content

Commit 1553f36

Browse files
Timothy Leggetimlegge
authored andcommitted
add_ext and add_ext_raw requires STACK_OF(X509_EXTENSION) not STACK_OF(X509_REQUEST)
1 parent 84bf9ab commit 1553f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PKCS10.xs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ X509_NAME *parse_name(char *subject, long chtype, int multirdn)
179179
* because we wont reference any other sections.
180180
*/
181181

182-
int add_ext(STACK_OF(X509_REQUEST) *sk, X509_REQ *req, int nid, char *value)
182+
int add_ext(STACK_OF(X509_EXTENSION) *sk, X509_REQ *req, int nid, char *value)
183183
{
184184
X509_EXTENSION *ex;
185185
X509V3_CTX v3ctx;
@@ -194,7 +194,7 @@ int add_ext(STACK_OF(X509_REQUEST) *sk, X509_REQ *req, int nid, char *value)
194194

195195
/* Add an extention by setting the raw ASN1 octet string.
196196
*/
197-
int add_ext_raw(STACK_OF(X509_REQUEST) *sk, int nid, unsigned char *value, int length)
197+
int add_ext_raw(STACK_OF(X509_EXTENSION) *sk, int nid, unsigned char *value, int length)
198198
{
199199
X509_EXTENSION *ex;
200200
ASN1_STRING *asn;

0 commit comments

Comments
 (0)