Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 517342 Details for
Bug 646272
sys-auth/pam_ssh: /etc/portage/patches/sys-auth/pam_ssh/my.patch is not applied
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/etc/portage/patches/sys-auth/pam_ssh/my.patch
my.patch (text/plain), 2.83 KB, created by
Thomas Bettler
on 2018-02-01 06:23:39 UTC
(
hide
)
Description:
/etc/portage/patches/sys-auth/pam_ssh/my.patch
Filename:
MIME Type:
Creator:
Thomas Bettler
Created:
2018-02-01 06:23:39 UTC
Size:
2.83 KB
patch
obsolete
>--- a/cipher.c.orig 2017-11-30 19:46:24.417989370 +0100 >+++ b/cipher.c 2017-11-30 19:54:58.228977337 +0100 >@@ -46,15 +46,7 @@ > #include "log.h" > #include "xmalloc.h" > >-#if OPENSSL_VERSION_NUMBER < 0x00906000L >-#define SSH_OLD_EVP >-#define EVP_CIPHER_CTX_get_app_data(e) ((e)->app_data) >-#endif > >-#if OPENSSL_VERSION_NUMBER < 0x00907000L >-extern const EVP_CIPHER *evp_rijndael(void); >-extern void ssh_rijndael_iv(EVP_CIPHER_CTX *, int, u_char *, u_int); >-#endif > extern const EVP_CIPHER *evp_ssh1_bf(void); > extern const EVP_CIPHER *evp_ssh1_3des(void); > extern void ssh1_3des_iv(EVP_CIPHER_CTX *, int, u_char *, int); >@@ -68,33 +60,18 @@ > u_int key_len; > const EVP_CIPHER *(*evptype)(void); > } ciphers[] = { >- { "none", SSH_CIPHER_NONE, 8, 0, EVP_enc_null }, >- { "des", SSH_CIPHER_DES, 8, 8, EVP_des_cbc }, >- { "3des", SSH_CIPHER_3DES, 8, 16, evp_ssh1_3des }, >- { "blowfish", SSH_CIPHER_BLOWFISH, 8, 32, evp_ssh1_bf }, >- >- { "3des-cbc", SSH_CIPHER_SSH2, 8, 24, EVP_des_ede3_cbc }, > { "blowfish-cbc", SSH_CIPHER_SSH2, 8, 16, EVP_bf_cbc }, > { "cast128-cbc", SSH_CIPHER_SSH2, 8, 16, EVP_cast5_cbc }, >- { "arcfour", SSH_CIPHER_SSH2, 8, 16, EVP_rc4 }, >-#if OPENSSL_VERSION_NUMBER < 0x00907000L >- { "aes128-cbc", SSH_CIPHER_SSH2, 16, 16, evp_rijndael }, >- { "aes192-cbc", SSH_CIPHER_SSH2, 16, 24, evp_rijndael }, >- { "aes256-cbc", SSH_CIPHER_SSH2, 16, 32, evp_rijndael }, >- { "rijndael-cbc@lysator.liu.se", >- SSH_CIPHER_SSH2, 16, 32, evp_rijndael }, >-#else >+ > { "aes128-cbc", SSH_CIPHER_SSH2, 16, 16, EVP_aes_128_cbc }, > { "aes192-cbc", SSH_CIPHER_SSH2, 16, 24, EVP_aes_192_cbc }, > { "aes256-cbc", SSH_CIPHER_SSH2, 16, 32, EVP_aes_256_cbc }, > { "rijndael-cbc@lysator.liu.se", > SSH_CIPHER_SSH2, 16, 32, EVP_aes_256_cbc }, >-#endif >-#if OPENSSL_VERSION_NUMBER >= 0x00906000L >+ > { "aes128-ctr", SSH_CIPHER_SSH2, 16, 16, evp_aes_128_ctr }, > { "aes192-ctr", SSH_CIPHER_SSH2, 16, 24, evp_aes_128_ctr }, > { "aes256-ctr", SSH_CIPHER_SSH2, 16, 32, evp_aes_128_ctr }, >-#endif > > { NULL, SSH_CIPHER_ILLEGAL, 0, 0, NULL } > }; >@@ -307,13 +284,8 @@ > memset(&md, 0, sizeof(md)); > } > >-#if OPENSSL_VERSION_NUMBER < 0x00907000L >-#define EVP_X_STATE(evp) &(evp).c >-#define EVP_X_STATE_LEN(evp) sizeof((evp).c) >-#else > #define EVP_X_STATE(evp) (evp).cipher_data > #define EVP_X_STATE_LEN(evp) (evp).cipher->ctx_size >-#endif > > int > cipher_get_keycontext(CipherContext *cc, u_char *dat) >@@ -321,12 +293,6 @@ > Cipher *c = cc->cipher; > int plen = 0; > >- if (c->evptype == EVP_rc4) { >- plen = EVP_X_STATE_LEN(cc->evp); >- if (dat == NULL) >- return (plen); >- memcpy(dat, EVP_X_STATE(cc->evp), plen); >- } > return (plen); > } > >@@ -334,10 +300,4 @@ > cipher_set_keycontext(CipherContext *cc, u_char *dat) > { > Cipher *c = cc->cipher; >- int plen; >- >- if (c->evptype == EVP_rc4) { >- plen = EVP_X_STATE_LEN(cc->evp); >- memcpy(EVP_X_STATE(cc->evp), dat, plen); >- } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 646272
: 517342 |
517344