The cipher_kt_mode uses bool as return type, this should be int. On
some platforms like OS X, any returned value larger than one will
be converted to 1.
Signed-off-by: Frank de Brabander <brabander@fox-it.com>
Acked-by: Adriaan de Jong <dejong@fox-it.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
| ... | ... |
@@ -218,7 +218,7 @@ int cipher_kt_block_size (const cipher_kt_t *cipher_kt); |
| 218 | 218 |
* @return Cipher mode, either \c OPENVPN_MODE_CBC, \c |
| 219 | 219 |
* OPENVPN_MODE_OFB or \c OPENVPN_MODE_CFB |
| 220 | 220 |
*/ |
| 221 |
-bool cipher_kt_mode (const cipher_kt_t *cipher_kt); |
|
| 221 |
+int cipher_kt_mode (const cipher_kt_t *cipher_kt); |
|
| 222 | 222 |
|
| 223 | 223 |
|
| 224 | 224 |
/** |