2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include <cryptoutil.h>
2N/A#include "softGlobal.h"
2N/A#include "softSession.h"
2N/A if (!softtoken_initialized)
2N/A return (CKR_CRYPTOKI_NOT_INITIALIZED);
2N/A return (CKR_ARGUMENTS_BAD);
2N/A return (CKR_RANDOM_SEED_NOT_SUPPORTED);
2N/A return (CKR_DEVICE_ERROR);
2N/A if (!softtoken_initialized)
2N/A return (CKR_CRYPTOKI_NOT_INITIALIZED);
2N/A return (CKR_ARGUMENTS_BAD);
2N/A return (CKR_DEVICE_ERROR);