diff options
author | tb <> | 2021-10-23 11:56:10 +0000 |
---|---|---|
committer | tb <> | 2021-10-23 11:56:10 +0000 |
commit | da4752206df316b9d5b3a44483f2e75b435b9cc6 (patch) | |
tree | 6b06b84ca5800ece374ceb1200b750564e91c1c8 /src/lib/libcrypto/asn1 | |
parent | c5d933b73b08738de0850281b4f0a6fb9ae942c2 (diff) | |
download | openbsd-da4752206df316b9d5b3a44483f2e75b435b9cc6.tar.gz openbsd-da4752206df316b9d5b3a44483f2e75b435b9cc6.tar.bz2 openbsd-da4752206df316b9d5b3a44483f2e75b435b9cc6.zip |
Prepare to provide X509_re_X509*_tbs()
ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/x_x509.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/x_x509.c b/src/lib/libcrypto/asn1/x_x509.c index 422f6256f7..ebe09a6099 100644 --- a/src/lib/libcrypto/asn1/x_x509.c +++ b/src/lib/libcrypto/asn1/x_x509.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x_x509.c,v 1.27 2021/09/02 12:41:44 job Exp $ */ | 1 | /* $OpenBSD: x_x509.c,v 1.28 2021/10/23 11:56:10 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -353,6 +353,13 @@ i2d_X509_AUX(X509 *a, unsigned char **pp) | |||
353 | return length; | 353 | return length; |
354 | } | 354 | } |
355 | 355 | ||
356 | int | ||
357 | i2d_re_X509_tbs(X509 *x, unsigned char **pp) | ||
358 | { | ||
359 | x->cert_info->enc.modified = 1; | ||
360 | return i2d_X509_CINF(x->cert_info, pp); | ||
361 | } | ||
362 | |||
356 | void | 363 | void |
357 | X509_get0_signature(const ASN1_BIT_STRING **psig, const X509_ALGOR **palg, | 364 | X509_get0_signature(const ASN1_BIT_STRING **psig, const X509_ALGOR **palg, |
358 | const X509 *x) | 365 | const X509 *x) |