Commit 51a3b763 authored by huangqinjin's avatar huangqinjin Committed by Matt Caswell
Browse files

Make x25519_compute_key() return a boolean

parent 65ea288d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -253,9 +253,9 @@ static int x25519_compute_key(unsigned char **psec, size_t *pseclen,
                              const EC_POINT *pub_key, const EC_KEY *ecdh)
{
    unsigned char *key;
    int ret = -1;
    int ret = 0;
    if (ecdh->custom_data == NULL)
        return -1;
        return 0;
    key = OPENSSL_malloc(EC_X25519_KEYLEN);
    if (key == NULL)
        return 0;