diff options
author | Richard Levitte <levitte@openssl.org> | 2002-12-05 00:04:40 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-12-05 00:04:40 +0000 |
commit | 72951df799b7f0a4bb80011b8c57e8529f3c1b5a (patch) | |
tree | 0d79a9853730414956ed8e1086d574d3c1d7248d /crypto/engine | |
parent | a9b41af71cf71b25097876e01c2a0c9b2219ae52 (diff) |
Only check for a result buffer if the allocated string is a prompt string.
PR: 381
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/hw_ncipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/engine/hw_ncipher.c b/crypto/engine/hw_ncipher.c index 488aea4244..b3757e2e8d 100644 --- a/crypto/engine/hw_ncipher.c +++ b/crypto/engine/hw_ncipher.c @@ -1022,7 +1022,7 @@ static int hwcrhk_rsa_mod_exp(BIGNUM *r, const 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); @@ -1320,7 +1320,7 @@ static void hwcrhk_log_message(void *logstr, const char *message) lstream=*(BIO **)logstr; if (lstream) { - BIO_write(lstream, message, strlen(message)); + BIO_printf(lstream, "%s\n", message); } CRYPTO_w_unlock(CRYPTO_LOCK_BIO); } |