Yeah, the OpenSSL API wants that to be an int as a function argument. Here's the declaration

```        int (*bytes)(unsigned char *buf, int num);```