If a similar certificate, similarly executed, shall state that a prisoner has been indicted or stands legally charged with a crime outside Virginia, the Director may, with the approval of the Governor, likewise deliver the prisoner to the officer presenting the certificate. Such delivery may be conditioned upon the return of the prisoner under such circumstances as the Governor may prescribe.
Any officer of the United States, the District of Columbia, or any other state to whom custody of any such prisoner has been surrendered, is hereby clothed with the authority and powers of a sheriff or a state correctional officer with respect to the custody of the prisoner in this Commonwealth.
Any duly authorized officer of the United States, the District of Columbia, or any other state, while engaged in transporting through Virginia to any other state any prisoner of the United States, the District of Columbia, or any other state, lawfully taken or surrendered into his custody either within or without Virginia in any manner, shall while transporting such prisoner into or through Virginia, be clothed with all of the authority and powers of a sheriff or of a state correctional officer with respect to the custody of the prisoner in this Commonwealth.
Va. Code § 53.1-208