raop: fix typo: modules -> modulus

This commit is contained in:
Tanu Kaskinen 2016-11-07 17:12:56 +02:00
parent 2ee5dffffb
commit f2199f879a

View file

@ -74,7 +74,7 @@ static const char rsa_exponent[] =
"AQAB"; "AQAB";
static int rsa_encrypt(uint8_t *data, int len, uint8_t *str) { static int rsa_encrypt(uint8_t *data, int len, uint8_t *str) {
uint8_t modules[256]; uint8_t modulus[256];
uint8_t exponent[8]; uint8_t exponent[8];
int size; int size;
RSA *rsa; RSA *rsa;
@ -91,9 +91,9 @@ static int rsa_encrypt(uint8_t *data, int len, uint8_t *str) {
goto fail; goto fail;
} }
size = pa_raop_base64_decode(rsa_modulus, modules); size = pa_raop_base64_decode(rsa_modulus, modulus);
n_bn = BN_bin2bn(modules, size, NULL); n_bn = BN_bin2bn(modulus, size, NULL);
if (!n_bn) { if (!n_bn) {
pa_log("n_bn = BN_bin2bn() failed."); pa_log("n_bn = BN_bin2bn() failed.");
goto fail; goto fail;