* Return the device/driver capabilities. */
| 1098 | * Return the device/driver capabilities. |
| 1099 | */ |
| 1100 | int |
| 1101 | crypto_getcaps(int hid) |
| 1102 | { |
| 1103 | struct cryptocap *cap; |
| 1104 | int flags; |
| 1105 | |
| 1106 | flags = 0; |
| 1107 | CRYPTO_DRIVER_LOCK(); |
| 1108 | cap = crypto_checkdriver(hid); |
| 1109 | if (cap != NULL) |
| 1110 | flags = cap->cc_flags; |
| 1111 | CRYPTO_DRIVER_UNLOCK(); |
| 1112 | return (flags); |
| 1113 | } |
| 1114 | |
| 1115 | /* |
| 1116 | * Register support for a key-related algorithm. This routine |
no test coverage detected