aboutsummaryrefslogtreecommitdiff
path: root/rpc_server.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-07-07 16:48:23 -0400
committerRob Austein <sra@hactrn.net>2016-07-07 16:48:23 -0400
commitdb595b9c0c69c0dc43aeb78ecc16f8e3f6f058f3 (patch)
tree78cfcad1d65afd9db1e1b244edfafd3df9b49a4f /rpc_server.c
parentc5bbdc94037efa5050ad32454509bc1c366c288f (diff)
Drop RPC response message if the opcode doesn't match what we sent.
Diffstat (limited to 'rpc_server.c')
-rw-r--r--rpc_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc_server.c b/rpc_server.c
index 7b06780..ff6367c 100644
--- a/rpc_server.c
+++ b/rpc_server.c
@@ -731,10 +731,10 @@ void hal_rpc_server_dispatch(const uint8_t * const ibuf, const size_t ilen,
case RPC_FUNC_PKEY_GET_PUBLIC_KEY:
ret = pkey_get_public_key(&iptr, ilimit, &optr, olimit);
break;
- case RPC_FUNC_PKEY_REMOTE_SIGN:
+ case RPC_FUNC_PKEY_SIGN:
ret = pkey_remote_sign(&iptr, ilimit, &optr, olimit);
break;
- case RPC_FUNC_PKEY_REMOTE_VERIFY:
+ case RPC_FUNC_PKEY_VERIFY:
ret = pkey_remote_verify(&iptr, ilimit, &optr, olimit);
break;
case RPC_FUNC_PKEY_LIST: