---
name: "Tspi_TPM_AuthorizeMigrationTicket"
section: "3"
platform: "linux"
package: "libtspi-dev"
version: "0.3.15-0.4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Tspi_TPM_AuthorizeMigrationTicket"
---

# Tspi\_TPM\_AuthorizeMigrationTicket(3)

## NAME

Tspi\_TPM\_AuthorizeMigrationTicket- create the migration ticket required for the migration process.

## SYNOPSIS

**#include \<tss/platform.h\>** **#include \<tss/tcpa\_defines.h\>** **#include \<tss/tcpa\_typedef.h\>** **#include \<tss/tcpa\_struct.h\>** **#include \<tss/tss\_typedef.h\>** **#include \<tss/tss\_structs.h\>** **#include \<tss/tspi.h\>** **TSS\_RESULT Tspi\_TPM\_AuthorizeMigrationTicket(TSS\_HTPM**           *hTPM***,            TSS\_HKEY** *hMigrationKey***,**                                              **TSS\_MIGRATE\_SCHEME** *migrationScheme***, UINT32\***  *pulMigTicketLength***,**                                              **BYTE\*\***             *prgbMigTicket***);**

## DESCRIPTION

**Tspi\_TPM\_AuthorizeMigrationTicket** is used by the owner to authorize a target public key for migration. This mean sthat when a system is set up, the owner can decide that all archives should be done on a particular server. Then as keys are created, the user can pick one of these servers for the target of the migration of their keys, if they wish. This provides one of the two authorizations necessary to migrate a key.

## PARAMETERS

### hTPM

Handle of the TPM object

### hMigrationKey

Handle of the object representing the migration key.

### migrationScheme

Flag indiating the migration scheme to be used.

### pulMigTicketLength

Recieves the length (in bytes) of the prgbMigTicket parameter.

### prgbMigTicket

Recieves a pointer to thememory block containing the migration ticket blob.

## RETURN CODES

**Tspi\_TPM\_AuthorizeMigrationTicket** returns TSS\_SUCCESS on success, otherwise one of the following values are returned: TSS\_E\_INVALID\_HANDLE Either **hTPM** or **hMigrationKey** is not a valid handle. TSS\_E\_INTERNAL\_ERROR An error occurred internal to the TSS.

## CONFORMING TO

**Tspi\_TPM\_AuthorizeMigrationTicket** conforms to the Trusted Computing Group Software Specification version 1.1 Golden

## SEE ALSO

**(none)**.
