diff options
author | sam <sam@FreeBSD.org> | 2002-10-07 18:37:31 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2002-10-07 18:37:31 +0000 |
commit | d1b4781c0cd0af70f9ac411d33a9448d5e6cd240 (patch) | |
tree | bff9698b160126be526fdb32856a875cceb60e81 /sys/opencrypto | |
parent | f37d14638a5d3fd03e35b2b65247b45a06387f91 (diff) | |
download | FreeBSD-src-d1b4781c0cd0af70f9ac411d33a9448d5e6cd240.zip FreeBSD-src-d1b4781c0cd0af70f9ac411d33a9448d5e6cd240.tar.gz |
remove CIOGSSESSION (get software session); it was added only for testing
Diffstat (limited to 'sys/opencrypto')
-rw-r--r-- | sys/opencrypto/cryptodev.c | 4 | ||||
-rw-r--r-- | sys/opencrypto/cryptodev.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c index 0e88fda..6612cef 100644 --- a/sys/opencrypto/cryptodev.c +++ b/sys/opencrypto/cryptodev.c @@ -146,7 +146,6 @@ cryptof_ioctl( switch (cmd) { case CIOCGSESSION: - case CIOCGSSESSION: sop = (struct session_op *)data; switch (sop->cipher) { case 0: @@ -254,8 +253,7 @@ cryptof_ioctl( } } - error = crypto_newsession(&sid, (txform ? &crie : &cria), - (cmd == CIOCGSESSION ? 1 : -1)); + error = crypto_newsession(&sid, (txform ? &crie : &cria), 1); if (error) goto bail; diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h index 30962b9..8c37ae4 100644 --- a/sys/opencrypto/cryptodev.h +++ b/sys/opencrypto/cryptodev.h @@ -172,7 +172,6 @@ struct crypt_kop { #define CIOCFSESSION _IOW('c', 102, u_int32_t) #define CIOCCRYPT _IOWR('c', 103, struct crypt_op) #define CIOCKEY _IOWR('c', 104, struct crypt_kop) -#define CIOCGSSESSION _IOWR('c', 105, struct session_op) #define CIOCASYMFEAT _IOR('c', 105, u_int32_t) |