## OpenCA - Command
## (c) 1998-2002 by Massimiliano Pala and OpenCA Group
## (c) Copyright 2003-2004 The OpenCA Project
##
##   File Name: HSMlogout
##       Brief: close a session on the hardware security module
## Description: logout from the hardware security module
##  Parameters: 

use strict;

sub cmdHsmLogout {

    print startLogPage (gettext("Logout from hardware security modules in daemon mode"));

    print addLogSection (gettext("Stop modules via cryptographic layer ..."));
    $crypto_layer->stopDaemon();
    print closeLogSection ();

    print closeLogPage ();

    return 1;
}

1;
