mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-02-04 21:19:14 +00:00
swtpm_setup: Use g_strdup instead of strdup
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
1df0a141e7
commit
ebc8f2e758
@ -1668,7 +1668,7 @@ static int swtpm_tpm12_take_ownership(struct swtpm *self, const unsigned char ow
|
||||
EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) < 1 ||
|
||||
EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, sha1) < 1 ||
|
||||
EVP_PKEY_CTX_set_rsa_oaep_md(ctx, sha1) < 1 ||
|
||||
EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, strdup("TCPA"), 4) < 1 ||
|
||||
EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, g_strdup("TCPA"), 4) < 1 ||
|
||||
EVP_PKEY_encrypt(ctx, enc_owner_auth, &enc_owner_auth_len,
|
||||
ownerpass_digest, SHA_DIGEST_LENGTH) < 1||
|
||||
EVP_PKEY_encrypt(ctx, enc_srk_auth, &enc_srk_auth_len,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user