EVP_PKEY_assign function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<EVP_PKEY>, Int, Pointer<Void>)>(ffi.Pointer<EVP_PKEY>, ffi.Int, ffi.Pointer<ffi.Void>)>(symbol: 'bssl_dart_EVP_PKEY_assign')
int EVP_PKEY_assign(
  1. Pointer<EVP_PKEY> pkey,
  2. int type,
  3. Pointer<Void> key
)

EVP_PKEY_assign sets the underlying key of pkey to key, which must be of the given type. If successful, it returns one. If the type argument is not one of EVP_PKEY_RSA, EVP_PKEY_DSA, or EVP_PKEY_EC values or if key is NULL, it returns zero. This function may not be used with other EVP_PKEY_* types.

Use the EVP_PKEY_assign_* functions instead.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(ffi.Pointer<EVP_PKEY>, ffi.Int, ffi.Pointer<ffi.Void>)
>(symbol: 'bssl_dart_EVP_PKEY_assign')
external int EVP_PKEY_assign(
  ffi.Pointer<EVP_PKEY> pkey,
  int type,
  ffi.Pointer<ffi.Void> key,
);