/* Provenance: openssl/openssl init_sig_algs (fixed). * repo: openssl/openssl * commit: 02b1636fe3db274497304a3e95a4e32ced7e841b * parent: 112580c27b829b0ac0874d5c5787195f27c7952c * commit_url: https://github.com/openssl/openssl/commit/02b1636fe3db274497304a3e95a4e32ced7e841b * cve: CVE-2021-3449 * license: OpenSSL License * function: init_sig_algs * relpath: ssl/statem/extensions.c */ static int init_sig_algs(SSL *s, unsigned int context) { /* Clear any signature algorithms extension received */ OPENSSL_free(s->s3.tmp.peer_sigalgs); s->s3.tmp.peer_sigalgs = NULL; s->s3.tmp.peer_sigalgslen = 0; return 1; }