Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151027268
D27065.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27065.id.diff
View Options
Index: head/sys/opencrypto/cryptodev.h
===================================================================
--- head/sys/opencrypto/cryptodev.h
+++ head/sys/opencrypto/cryptodev.h
@@ -220,9 +220,9 @@
uint32_t mac; /* ie. CRYPTO_SHA2_256_HMAC */
uint32_t keylen; /* cipher key */
- c_caddr_t key;
+ const void *key;
int mackeylen; /* mac key */
- c_caddr_t mackey;
+ const void *mackey;
uint32_t ses; /* returns: session # */
};
@@ -237,9 +237,9 @@
uint32_t mac; /* ie. CRYPTO_SHA2_256_HMAC */
uint32_t keylen; /* cipher key */
- c_caddr_t key;
+ const void *key;
int mackeylen; /* mac key */
- c_caddr_t mackey;
+ const void *mackey;
uint32_t ses; /* returns: session # */
int crid; /* driver id + flags (rw) */
@@ -255,10 +255,10 @@
#define COP_F_CIPHER_FIRST 0x0001 /* Cipher before MAC. */
#define COP_F_BATCH 0x0008 /* Batch op if possible */
u_int len;
- c_caddr_t src; /* become iov[] inside kernel */
- caddr_t dst;
- caddr_t mac; /* must be big enough for chosen MAC */
- c_caddr_t iv;
+ const void *src; /* become iov[] inside kernel */
+ void *dst;
+ void *mac; /* must be big enough for chosen MAC */
+ const void *iv;
};
/* op and flags the same as crypt_op */
@@ -269,11 +269,11 @@
u_int len;
u_int aadlen;
u_int ivlen;
- c_caddr_t src; /* become iov[] inside kernel */
- caddr_t dst;
- c_caddr_t aad; /* additional authenticated data */
- caddr_t tag; /* must fit for chosen TAG length */
- c_caddr_t iv;
+ const void *src; /* become iov[] inside kernel */
+ void *dst;
+ const void *aad; /* additional authenticated data */
+ void *tag; /* must fit for chosen TAG length */
+ const void *iv;
};
/*
@@ -288,7 +288,7 @@
/* bignum parameter, in packed bytes, ... */
struct crparam {
- caddr_t crp_p;
+ void *crp_p;
u_int crp_nbits;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 1:08 PM (2 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30971303
Default Alt Text
D27065.id.diff (1 KB)
Attached To
Mode
D27065: Use void * in place of caddr_t.
Attached
Detach File
Event Timeline
Log In to Comment