-/* $OpenBSD: cms_io.c,v 1.13 2023/04/21 19:08:47 tb Exp $ */
+/* $OpenBSD: cms_io.c,v 1.14 2023/04/21 20:08:23 tb Exp $ */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
CMS_ContentInfo *
PEM_read_bio_CMS(BIO *bp, CMS_ContentInfo **x, pem_password_cb *cb, void *u)
{
- return PEM_ASN1_read_bio((d2i_of_void *)d2i_CMS_ContentInfo, PEM_STRING_CMS, bp,
- (void **)x, cb, u);
+ return PEM_ASN1_read_bio((d2i_of_void *)d2i_CMS_ContentInfo,
+ PEM_STRING_CMS, bp, (void **)x, cb, u);
}
CMS_ContentInfo *
PEM_read_CMS(FILE *fp, CMS_ContentInfo **x, pem_password_cb *cb, void *u)
{
- return PEM_ASN1_read((d2i_of_void *)d2i_CMS_ContentInfo, PEM_STRING_CMS, fp,
- (void **)x, cb, u);
+ return PEM_ASN1_read((d2i_of_void *)d2i_CMS_ContentInfo,
+ PEM_STRING_CMS, fp, (void **)x, cb, u);
}
int
PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x)
{
- return PEM_ASN1_write_bio((i2d_of_void *)i2d_CMS_ContentInfo, PEM_STRING_CMS, bp,
- (void *)x, NULL, NULL, 0, NULL, NULL);
+ return PEM_ASN1_write_bio((i2d_of_void *)i2d_CMS_ContentInfo,
+ PEM_STRING_CMS, bp, (void *)x, NULL, NULL, 0, NULL, NULL);
}
int
PEM_write_CMS(FILE *fp, const CMS_ContentInfo *x)
{
- return PEM_ASN1_write((i2d_of_void *)i2d_CMS_ContentInfo, PEM_STRING_CMS, fp,
- (void *)x, NULL, NULL, 0, NULL, NULL);
+ return PEM_ASN1_write((i2d_of_void *)i2d_CMS_ContentInfo,
+ PEM_STRING_CMS, fp, (void *)x, NULL, NULL, 0, NULL, NULL);
}
BIO *
int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags)
{
return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)cms, in, flags,
- &CMS_ContentInfo_it);
+ &CMS_ContentInfo_it);
}
int