mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-18 19:41:42 +00:00
Reference copy-less versions of X.509 CRT frame/PK getters
This commit is contained in:
parent
ed05888195
commit
608de6a50d
|
@ -656,6 +656,10 @@ void mbedtls_x509_crt_restart_free( mbedtls_x509_crt_restart_ctx *ctx );
|
|||
* ::mbedtls_x509_crt_frame on the stack and call this function
|
||||
* on it, in which case no allocation/freeing has to be done.
|
||||
*
|
||||
* \note You may also use mbedtls_x509_crt_frame_acquire() and
|
||||
* mbedtls_x509_crt_frame_release() for copy-less variants
|
||||
* of this function.
|
||||
*
|
||||
* \return \c 0 on success. In this case, \p dst is updated
|
||||
* to hold the frame for the given CRT.
|
||||
* \return A negative error code on failure.
|
||||
|
@ -670,6 +674,10 @@ int mbedtls_x509_crt_get_frame( mbedtls_x509_crt const *crt,
|
|||
* \param pk The address of the destination PK context to fill.
|
||||
* This must be initialized via mbedtls_pk_init().
|
||||
*
|
||||
* \note You may also use mbedtls_x509_crt_pk_acquire() and
|
||||
* mbedtls_x509_crt_pk_release() for copy-less variants
|
||||
* of this function.
|
||||
*
|
||||
* \return \c 0 on success. In this case, the user takes ownership
|
||||
* of the destination PK context, and is responsible for
|
||||
* calling mbedtls_pk_free() on it once it's no longer needed.
|
||||
|
|
Loading…
Reference in a new issue