Method

GLibHmaccopy

since: 2.30

Declaration

GHmac*
g_hmac_copy (
  const GHmac* hmac
)

Description

Copies a GHmac. If hmac has been closed, by calling g_hmac_get_string() or g_hmac_get_digest(), the copied HMAC will be closed as well.

Available since: 2.30

This method is not directly available to language bindings.

Return value

Type: GHmac

The copy of the passed GHmac. Use g_hmac_unref() when finished using it.

The data is owned by the instance.