Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 661f884ed921ce7afb60834b7f58a3bc5b9ad777 authored by Tomas Mraz on 11 September 2024, 15:41:30 UTC, committed by Tomas Mraz on 11 September 2024, 15:41:30 UTC
Fixup conflicting SSL_R_ECH_REQUIRED
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25435)
1 parent f303c9a
  • Files
  • Changes
  • c2cf0b7
  • /
  • doc
  • /
  • man3
  • /
  • OSSL_CMP_ATAV_set0.pod
Raw File
Cook and download a directory from the Software Heritage Vault

You have requested the cooking of the directory with identifier None into a standard tar.gz archive.

Are you sure you want to continue ?

Download a directory from the Software Heritage Vault

You have requested the download of the directory with identifier None as a standard tar.gz archive.

Are you sure you want to continue ?

Cook and download a revision from the Software Heritage Vault

You have requested the cooking of the history heading to revision with identifier swh:1:rev:661f884ed921ce7afb60834b7f58a3bc5b9ad777 into a bare git archive.

Are you sure you want to continue ?

Download a revision from the Software Heritage Vault

You have requested the download of the history heading to revision with identifier swh:1:rev:661f884ed921ce7afb60834b7f58a3bc5b9ad777 as a bare git archive.

Are you sure you want to continue ?

Invalid Email !

The provided email is not well-formed.

Download link has expired

The requested archive is no longer available for download from the Software Heritage Vault.

Do you want to cook it again ?

Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • content
revision badge
swh:1:rev:661f884ed921ce7afb60834b7f58a3bc5b9ad777
content badge Iframe embedding
swh:1:cnt:2fe37f79407853518188a263de500c734e7a1f22
OSSL_CMP_ATAV_set0.pod
=pod

=head1 NAME

OSSL_CMP_ATAV,
OSSL_CMP_ATAV_create,
OSSL_CMP_ATAV_set0,
OSSL_CMP_ATAV_get0_type,
OSSL_CMP_ATAV_get0_value,
OSSL_CMP_ATAV_new_algId,
OSSL_CMP_ATAV_get0_algId,
OSSL_CMP_ATAV_new_rsaKeyLen,
OSSL_CMP_ATAV_get_rsaKeyLen,
OSSL_CMP_ATAVS,
OSSL_CMP_ATAV_push1,
OSSL_CMP_ATAV_free
- OSSL_CMP_ATAV utility functions

=head1 SYNOPSIS

 #include <openssl/cmp.h>

 typedef OSSL_CRMF_ATTRIBUTETYPEANDVALUE OSSL_CMP_ATAV;
 OSSL_CMP_ATAV *OSSL_CMP_ATAV_create(ASN1_OBJECT *type, ASN1_TYPE *value);
 void OSSL_CMP_ATAV_set0(OSSL_CMP_ATAV *atav, ASN1_OBJECT *type,
                         ASN1_TYPE *value);
 ASN1_OBJECT *OSSL_CMP_ATAV_get0_type(const OSSL_CMP_ATAV *atav);
 ASN1_TYPE *OSSL_CMP_ATAV_get0_value(const OSSL_CMP_ATAV *atav);

 OSSL_CMP_ATAV *OSSL_CMP_ATAV_new_algId(const X509_ALGOR *alg);
 X509_ALGOR *OSSL_CMP_ATAV_get0_algId(const OSSL_CMP_ATAV *atav);
 OSSL_CMP_ATAV *OSSL_CMP_ATAV_new_rsaKeyLen(int len);
 int OSSL_CMP_ATAV_get_rsaKeyLen(const OSSL_CMP_ATAV *atav);

 typedef STACK_OF(OSSL_CRMF_ATTRIBUTETYPEANDVALUE) OSSL_CMP_ATAVS;
 int OSSL_CMP_ATAV_push1(OSSL_CMP_ATAVS **sk_p, const OSSL_CMP_ATAV *atav);
 void OSSL_CMP_ATAV_free(OSSL_CMP_ATAV *atav);

=head1 DESCRIPTION

B<OSSL_CMP_ATAV> is a short hand of B<OSSL_CRMF_ATTRIBUTETYPEANDVALUE>,
defined in RFC 4211 Appendix B.
It is typically used in CertRequest structures,
but also in CertReqTemplateContent structures for key specifications.

OSSL_CMP_ATAV_create() creates a new B<OSSL_CMP_ATAV> structure and fills it in.
It combines OSSL_CMP_ATAV_new() and OSSL_CMP_ATAV_set0().

OSSL_CMP_ATAV_set0() sets the I<atav> with an infoType of I<type> and an
infoValue of I<value>.
The pointers I<type> and I<value> may be NULL, otherwise
they must B<not> be freed up after the call because their ownership
is transferred to I<atav>. The I<itav> pointer must not be NULL.

OSSL_CMP_ATAV_get0_type() returns a direct pointer to the infoType
in the I<atav> unless it is NULL.

OSSL_CMP_ATAV_get0_value() returns a direct pointer to the infoValue
in the I<atav> as generic B<ASN1_TYPE> pointer unless I<atav> is NULL.

OSSL_CMP_ATAV_new_algId() creates a new B<OSSL_CMP_ATAV> structure of type
B<algId> and fills it in with a copy of the given I<alg>.

OSSL_CMP_ATAV_get0_algId() returns
a direct pointer to the algId infoValue in the I<atav> of type B<X509_ALGOR>
or NULL if I<atav> is NULL or does not contain an algId.

OSSL_CMP_ATAV_new_rsaKeyLen() creates a new B<OSSL_CMP_ATAV> structure of type
B<rsaKeyLen> and fills it in with the given I<len>, which must be positive.

OSSL_CMP_ATAV_get_rsaKeyLen() returns
the RSA key length in rsaKeyLen infoValue in the I<atav>,
-1 if I<atav> is NULL or does not contain an rsaKeyLen or cannot be parsed,
or -2 if the value is less than 1 or is greater than INT_MAX.

OSSL_CMP_ATAV_push1() pushes a copy of I<atav> to the stack of B<OSSL_CMP_ATAV>
pointed to by I<*sk_p>. It creates a new stack if I<*sk_p> points to NULL.

OSSL_CMP_ATAV_free() deallocates I<atav>. It is defined as a macro.

=head1 NOTES

CMP is defined in RFC 4210. CRMF is defined in RFC 4211.

=head1 RETURN VALUES

OSSL_CMP_ATAV_create(),
OSSL_CMP_ATAV_new_algId(), and OSSL_CMP_ATAV_new_rsaKeyLen()
return a pointer to the ATAV structure on success, or NULL on error.

OSSL_CMP_ATAV_set0() and OSSL_CMP_ATAV_free() do not return a value.

OSSL_CMP_ATAV_get0_type(), OSSL_CMP_ATAV_get0_value(), and
OSSL_CMP_ATAV_get0_algId()
return the respective pointer or NULL if their input is NULL.

OSSL_CMP_ATAV_get_rsaKeyLen() return a key length in bits or < 0 on error.

OSSL_CMP_ATAV_push1() returns 1 on success, 0 on error.

=head1 SEE ALSO

L<OSSL_CMP_ITAV_new0_certReqTemplate(3)>, L<ASN1_TYPE_set(3)>

=head1 HISTORY

The B<OSSL_CMP_ATAV> type and related functions were added in OpenSSL 3.4.

=head1 COPYRIGHT

Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License").  You may not use
this file except in compliance with the License.  You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.

=cut
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top