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

Return value

Type: GHmac

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

The caller of the method takes ownership of the data, and is responsible for freeing it.