KEYS: Add KEYCTL_DH_COMPUTE command
[deliverable/linux.git] / security / keys / keyctl.c
index ed73c6c1c326c02bf0f4f80923e4792f292ec2fd..3b135a0af34406a52dc8019f664fd855c5ad0068 100644 (file)
@@ -1686,6 +1686,11 @@ SYSCALL_DEFINE5(keyctl, int, option, unsigned long, arg2, unsigned long, arg3,
        case KEYCTL_GET_PERSISTENT:
                return keyctl_get_persistent((uid_t)arg2, (key_serial_t)arg3);
 
+       case KEYCTL_DH_COMPUTE:
+               return keyctl_dh_compute((struct keyctl_dh_params __user *) arg2,
+                                        (char __user *) arg3,
+                                        (size_t) arg4);
+
        default:
                return -EOPNOTSUPP;
        }
This page took 0.118957 seconds and 5 git commands to generate.