Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 562096 Details for
Bug 674822
app-backup/attic-0.16-r1 : attic/crypto.c:838:18: error: field ctx has incomplete type
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Attic compatibility patch for OpenSSL 1.1 (to be put in FILESDIR)
attic-0.16-openssl-1.1-fix.patch (text/plain), 2.25 KB, created by
José María Fernández González
on 2019-01-18 23:15:51 UTC
(
hide
)
Description:
Attic compatibility patch for OpenSSL 1.1 (to be put in FILESDIR)
Filename:
MIME Type:
Creator:
José María Fernández González
Created:
2019-01-18 23:15:51 UTC
Size:
2.25 KB
patch
obsolete
>diff -Nru attic-0.16/attic/crypto.pyx attic-0.16-fixed-base/attic/crypto.pyx >--- attic-0.16/attic/crypto.pyx 2015-05-16 21:35:31.000000000 +0200 >+++ attic-0.16-fixed-base/attic/crypto.pyx 2019-01-18 23:59:39.172993670 +0100 >@@ -23,8 +23,9 @@ > pass > const EVP_MD *EVP_sha256() > const EVP_CIPHER *EVP_aes_256_ctr() >- void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a) >- void EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) >+ EVP_CIPHER_CTX *EVP_CIPHER_CTX_new() >+ const unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *a) >+ void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *a) > > int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl, > const unsigned char *key, const unsigned char *iv) >@@ -84,16 +85,16 @@ > cdef class AES: > """A thin wrapper around the OpenSSL EVP cipher API > """ >- cdef EVP_CIPHER_CTX ctx >+ cdef EVP_CIPHER_CTX * ctx > > def __cinit__(self, key, iv=None): >- EVP_CIPHER_CTX_init(&self.ctx) >- if not EVP_EncryptInit_ex(&self.ctx, EVP_aes_256_ctr(), NULL, NULL, NULL): >+ self.ctx = EVP_CIPHER_CTX_new(); >+ if not EVP_EncryptInit_ex(self.ctx, EVP_aes_256_ctr(), NULL, NULL, NULL): > raise Exception('EVP_EncryptInit_ex failed') > self.reset(key, iv) > > def __dealloc__(self): >- EVP_CIPHER_CTX_cleanup(&self.ctx) >+ EVP_CIPHER_CTX_free(self.ctx) > > def reset(self, key=None, iv=None): > cdef const unsigned char *key2 = NULL >@@ -102,12 +103,12 @@ > key2 = key > if iv: > iv2 = iv >- if not EVP_EncryptInit_ex(&self.ctx, NULL, NULL, key2, iv2): >+ if not EVP_EncryptInit_ex(self.ctx, NULL, NULL, key2, iv2): > raise Exception('EVP_EncryptInit_ex failed') > > @property > def iv(self): >- return self.ctx.iv[:16] >+ return EVP_CIPHER_CTX_iv(self.ctx)[:16] > > def encrypt(self, data): > cdef int inl = len(data) >@@ -116,7 +117,7 @@ > if not out: > raise MemoryError > try: >- if not EVP_EncryptUpdate(&self.ctx, out, &outl, data, inl): >+ if not EVP_EncryptUpdate(self.ctx, out, &outl, data, inl): > raise Exception('EVP_EncryptUpdate failed') > return out[:inl] > finally:
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 674822
:
560262
|
560264
|
560266
|
560268
|
560270
|
560272
| 562096 |
562098