From: Richard Levitte Date: Thu, 5 Dec 2002 00:14:08 +0000 (+0000) Subject: PR: 381 X-Git-Tag: OpenSSL-engine-0_9_6h~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3c5420b28fa3b31f390749d5401871bf7739baf;p=oweals%2Fopenssl.git PR: 381 --- diff --git a/crypto/engine/hw_ncipher.c b/crypto/engine/hw_ncipher.c index 847c840d0f..d6834d7a34 100644 --- a/crypto/engine/hw_ncipher.c +++ b/crypto/engine/hw_ncipher.c @@ -828,7 +828,7 @@ static int hwcrhk_rsa_mod_exp(BIGNUM *r, BIGNUM *I, RSA *rsa) /* Perform the operation */ ret = p_hwcrhk_ModExpCRT(hwcrhk_context, m_a, m_p, m_q, - m_dmp1, m_dmq1, m_iqmp, &m_r, NULL); + m_dmp1, m_dmq1, m_iqmp, &m_r, &rmsg); /* Convert the response */ r->top = m_r.size / sizeof(BN_ULONG); @@ -1014,7 +1014,7 @@ static void hwcrhk_log_message(void *_logstream, const char *message) lstream=*(BIO **)_logstream; if (lstream) { - BIO_write(lstream, message, strlen(message)); + BIO_printf(lstream, "%s\n", message); } CRYPTO_w_unlock(CRYPTO_LOCK_BIO); }