early-access version 2698
This commit is contained in:
7
externals/libressl/crypto/x509/x509rset.c
vendored
7
externals/libressl/crypto/x509/x509rset.c
vendored
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: x509rset.c,v 1.7 2018/08/24 19:55:58 tb Exp $ */
|
||||
/* $OpenBSD: x509rset.c,v 1.9 2021/11/01 20:53:08 tb Exp $ */
|
||||
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -63,11 +63,14 @@
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/x509.h>
|
||||
|
||||
#include "x509_lcl.h"
|
||||
|
||||
int
|
||||
X509_REQ_set_version(X509_REQ *x, long version)
|
||||
{
|
||||
if (x == NULL)
|
||||
return (0);
|
||||
x->req_info->enc.modified = 1;
|
||||
return (ASN1_INTEGER_set(x->req_info->version, version));
|
||||
}
|
||||
|
||||
@@ -82,6 +85,7 @@ X509_REQ_set_subject_name(X509_REQ *x, X509_NAME *name)
|
||||
{
|
||||
if ((x == NULL) || (x->req_info == NULL))
|
||||
return (0);
|
||||
x->req_info->enc.modified = 1;
|
||||
return (X509_NAME_set(&x->req_info->subject, name));
|
||||
}
|
||||
|
||||
@@ -96,5 +100,6 @@ X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey)
|
||||
{
|
||||
if ((x == NULL) || (x->req_info == NULL))
|
||||
return (0);
|
||||
x->req_info->enc.modified = 1;
|
||||
return (X509_PUBKEY_set(&x->req_info->pubkey, pkey));
|
||||
}
|
||||
|
Reference in New Issue
Block a user