[openssl/openssl] efec0f: unbuffer stdin before get passwd from stdin

YoruStar noreply at github.com
Sun Dec 11 20:26:14 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: efec0f4611ee854f2b0b3da0c135e839bf8e7d04
      https://github.com/openssl/openssl/commit/efec0f4611ee854f2b0b3da0c135e839bf8e7d04
  Author: wangyuhang <524413304 at qq.com>
  Date:   2022-12-12 (Mon, 12 Dec 2022)

  Changed paths:
    M apps/lib/apps.c

  Log Message:
  -----------
  unbuffer stdin before get passwd from stdin

commond LD_LIBRARY_PATH= openssl rsa -aes256 -passout stdin <<< "xxxxxx” will get pass(fun app_get_pass()) from stdin first, and then load key(fun load_key()). but it unbuffer stdin before load key, this will cause the load key to fail.

now unbuffer stdin before get pass, this will solve https://github.com/openssl/openssl/issues/19835

CLA: trivial

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19851)




More information about the openssl-commits mailing list