You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CAN ANYONE HELP ME, I've tried just about everythig. Im new to all this so if you do help please explain it in a simple way.
Like why am I getting this error and how i can fix it. I dont want you to just tell me what to do to fix it, but why its doing it and how i can fix it. That way I can get a better idea of how to fix it, when I get an error in the future. THANKS!
root@thr33sixnine369:~/Pyrit# python setup.py build
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:180:5: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
180 | SHA1_Init(&ctr->ctx_ipad);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:181:5: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
181 | SHA1_Update(&ctr->ctx_ipad, pad, 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:184:5: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
184 | SHA1_Init(&ctr->ctx_opad);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:185:5: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
185 | SHA1_Update(&ctr->ctx_opad, pad, 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:206:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
206 | SHA1_Update(&ctx, (unsigned char)e1_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:207:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
207 | SHA1_Final((unsigned char)e1_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:210:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
210 | SHA1_Update(&ctx, (unsigned char)e1_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:211:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
211 | SHA1_Final((unsigned char)e1_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:217:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
217 | SHA1_Update(&ctx, (unsigned char)e2_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:218:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
218 | SHA1_Final((unsigned char)e2_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:221:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
221 | SHA1_Update(&ctx, (unsigned char)e2_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:222:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
222 | SHA1_Final((unsigned char)e2_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CPUDevice_solve’:
cpyrit/_cpyrit_cpu.c:247:29: warning: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration]
247 | essid = (unsigned char)PyString_AsString(essid_obj);
| ^~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:247:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
247 | essid = (unsigned char)PyString_AsString(essid_obj);
| ^
cpyrit/_cpyrit_cpu.c:248:16: warning: implicit declaration of function ‘PyString_Size’; did you mean ‘PyMapping_Size’? [-Wimplicit-function-declaration]
248 | essidlen = PyString_Size(essid_obj);
| ^~~~~~~~~~~~~
| PyMapping_Size
cpyrit/_cpyrit_cpu.c:274:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
274 | passwd = (unsigned char)PyString_AsString(passwd_obj);
| ^
cpyrit/_cpyrit_cpu.c:301:40: warning: implicit declaration of function ‘PyString_FromStringAndSize’; did you mean ‘PyBytes_FromStringAndSize’? [-Wimplicit-function-declaration]
301 | PyTuple_SetItem(result, i, PyString_FromStringAndSize((char)pmk_buffer[i].e1, 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| PyBytes_FromStringAndSize
cpyrit/_cpyrit_cpu.c:301:40: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
301 | PyTuple_SetItem(result, i, PyString_FromStringAndSize((char)pmk_buffer[i].e1, 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘Cracker_unpack’:
cpyrit/_cpyrit_cpu.c:360:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
360 | t = (unsigned char*)PyString_AsString(pmk_obj);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘EAPOLCracker_dealloc’:
cpyrit/_cpyrit_cpu.c:719:9: error: ‘EAPOLCracker’ has no member named ‘ob_type’
719 | self->ob_type->tp_free((PyObject*)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘EAPOLCracker_solve’:
cpyrit/_cpyrit_cpu.c:746:18: warning: implicit declaration of function ‘PyBuffer_Check’; did you mean ‘PyNumber_Check’? [-Wimplicit-function-declaration]
746 | if (!PyBuffer_Check(pmkbuffer_obj))
| ^~~~~~~~~~~~~~
| PyNumber_Check
cpyrit/_cpyrit_cpu.c:753:36: error: ‘PyBufferProcs’ has no member named ‘bf_getreadbuffer’; did you mean ‘bf_getbuffer’?
753 | buffersize = (pb->bf_getreadbuffer)(pmkbuffer_obj, 0, (void*)&t);
| ^~~~~~~~~~~~~~~~
| bf_getbuffer
cpyrit/_cpyrit_cpu.c: In function ‘CCMPCracker_dealloc’:
cpyrit/_cpyrit_cpu.c:910:9: error: ‘CCMPCracker’ has no member named ‘ob_type’
910 | self->ob_type->tp_free((PyObject*)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_pke2tk_openssl’:
cpyrit/_cpyrit_cpu.c:1023:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1023 | SHA1_Init(&ctx);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:1028:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1028 | SHA1_Update(&ctx, pad, sizeof(pad));
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1030:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1030 | SHA1_Update(&ctx, pke1, 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1033:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1033 | SHA1_Update(&ctx, pke1 + 64, 100 - 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1035:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1035 | SHA1_Final(hash, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1037:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1037 | SHA1_Init(&ctx);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:1041:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1041 | SHA1_Update(&ctx, pad, sizeof(pad));
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1044:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1044 | SHA1_Update(&ctx, hash, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1047:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1047 | SHA1_Final(hash, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1051:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1051 | SHA1_Update(&ipad_ctx, pke2 + 64, 100 - 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1052:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1052 | SHA1_Final(hash, &ipad_ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1053:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1053 | SHA1_Update(&opad_ctx, hash, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1056:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1056 | SHA1_Final(hash, &opad_ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘ccmp_encrypt_openssl’:
cpyrit/_cpyrit_cpu.c:1071:9: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1071 | AES_set_encrypt_key(&tkbuffer[i * 16], 128, &aes_ctx);
| ^~~~~~~~~~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:38:
/usr/include/openssl/aes.h:51:5: note: declared here
51 | int AES_set_encrypt_key(const unsigned char userKey, const int bits,
| ^~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1072:9: warning: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1072 | AES_encrypt(A0, crib, &aes_ctx);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:38:
/usr/include/openssl/aes.h:57:6: note: declared here
57 | void AES_encrypt(const unsigned char in, unsigned char out,
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CCMPCracker_solve’:
cpyrit/_cpyrit_cpu.c:1175:36: error: ‘PyBufferProcs’ has no member named ‘bf_getreadbuffer’; did you mean ‘bf_getbuffer’?
1175 | buffersize = (pb->bf_getreadbuffer)(pmkbuffer_obj, 0, (void)&t);
| ^~~~~~~~~~~~~~~~
| bf_getbuffer
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_dealloc’:
cpyrit/_cpyrit_cpu.c:1247:9: error: ‘CowpattyResult’ has no member named ‘ob_type’
1247 | self->ob_type->tp_free((PyObject)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_sq_item’:
cpyrit/_cpyrit_cpu.c:1300:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1300 | PyTuple_SetItem(result, 0, PyString_FromStringAndSize((char)&self->buffer[self->itemcount * 32 + consumed + 1], entrylen - 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1301:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1301 | PyTuple_SetItem(result, 1, PyString_FromStringAndSize((char*)&self->buffer[idx * 32], 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_iternext’:
cpyrit/_cpyrit_cpu.c:1330:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1330 | PyTuple_SetItem(result, 0, PyString_FromStringAndSize((char*)self->current_ptr + 1, entrylen - 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1331:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1331 | PyTuple_SetItem(result, 1, PyString_FromStringAndSize((char*)self->buffer + self->current_idx * 32, 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’:
cpyrit/_cpyrit_cpu.c:1346:12: warning: implicit declaration of function ‘PyBuffer_FromObject’; did you mean ‘PyBytes_FromObject’? [-Wimplicit-function-declaration]
1346 | return PyBuffer_FromObject(self, 0, Py_END_OF_BUFFER);
| ^~~~~~~~~~~~~~~~~~~
| PyBytes_FromObject
cpyrit/_cpyrit_cpu.c:1346:41: error: ‘Py_END_OF_BUFFER’ undeclared (first use in this function)
1346 | return PyBuffer_FromObject(self, 0, Py_END_OF_BUFFER);
| ^~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1346:41: note: each undeclared identifier is reported only once for each function it appears in
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyFile_gencowpentries’:
cpyrit/_cpyrit_cpu.c:1401:16: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1401 | passwd = PyString_AsString(passwd_obj);
| ^
cpyrit/_cpyrit_cpu.c:1416:13: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1416 | pmk = PyString_AsString(pmk_obj);
| ^
cpyrit/_cpyrit_cpu.c:1437:12: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1437 | result = PyString_FromStringAndSize((char)cowpbuffer, buffer_offset);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyFile_unpackcowpentries’:
cpyrit/_cpyrit_cpu.c:1523:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1523 | PyTuple_SetItem(result, 1, PyString_FromStringAndSize(string + consumed, stringsize - consumed));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_dealloc’:
cpyrit/_cpyrit_cpu.c:1562:9: error: ‘PcapDevice’ has no member named ‘ob_type’
1562 | self->ob_type->tp_free((PyObject*)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_setup’:
cpyrit/_cpyrit_cpu.c:1590:31: warning: implicit declaration of function ‘PyString_FromString’; did you mean ‘PyLong_FromString’? [-Wimplicit-function-declaration]
1590 | self->datalink_name = PyString_FromString(dlink_name);
| ^~~~~~~~~~~~~~~~~~~
| PyLong_FromString
cpyrit/_cpyrit_cpu.c:1590:29: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1590 | self->datalink_name = PyString_FromString(dlink_name);
| ^
cpyrit/_cpyrit_cpu.c:1599:16: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1599 | self->type = PyString_FromString(type);
| ^
cpyrit/_cpyrit_cpu.c:1607:23: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1607 | self->device_name = PyString_FromString(dev);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_read’:
cpyrit/_cpyrit_cpu.c:1711:30: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1711 | pckt_content = PyString_FromStringAndSize((char)bytes, h->caplen);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_send’:
cpyrit/_cpyrit_cpu.c:1776:9: warning: implicit declaration of function ‘PyString_AsStringAndSize’; did you mean ‘PyBytes_AsStringAndSize’? [-Wimplicit-function-declaration]
1776 | if (PyString_AsStringAndSize(pckt_string, &pckt_buffer, &pckt_size))
| ^~~~~~~~~~~~~~~~~~~~~~~~
| PyBytes_AsStringAndSize
cpyrit/_cpyrit_cpu.c: In function ‘cpyrit_grouper’:
cpyrit/_cpyrit_cpu.c:1878:36: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1878 | PyTuple_SetItem(result, i, PyString_FromStringAndSize(&string[i * groupsize], groupsize));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘cpyrit_pyr2halfpack’:
cpyrit/_cpyrit_cpu.c:1939:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1939 | t = (unsigned char*)PyString_AsString(item);
| ^
cpyrit/_cpyrit_cpu.c:1960:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1960 | t = (unsigned char*)PyString_AsString(item);
| ^
cpyrit/_cpyrit_cpu.c:1984:10: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1984 | item = PyString_FromStringAndSize((char)pwbuffer, (int)(pwptr - pwbuffer));
| ^
cpyrit/_cpyrit_cpu.c:1993:10: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1993 | item = PyString_FromStringAndSize((char)pmkbuffer, itemcount32);
| ^
cpyrit/_cpyrit_cpu.c: At top level:
cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces]
2027 | static PyTypeObject CPUDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2030:5: warning: initialization of ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
2030 | "_cpyrit_cpu.CPUDevice", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2030:5: note: (near initialization for ‘CPUDevice_type.tp_basicsize’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2048 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CPUDevice_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2048 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2057:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2057 | CPUDevice_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2057:5: note: (near initialization for ‘CPUDevice_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces]
2027 | static PyTypeObject CPUDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces]
2078 | static PyTypeObject EAPOLCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2081:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2081 | "_cpyrit_cpu.EAPOLCracker", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2081:5: note: (near initialization for ‘EAPOLCracker_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2084:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2084 | (destructor)EAPOLCracker_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2084:5: note: (near initialization for ‘EAPOLCracker_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2099 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘EAPOLCracker_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2099 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2108:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2108 | EAPOLCracker_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2108:5: note: (near initialization for ‘EAPOLCracker_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2116:5: warning: initialization of ‘PyObject * ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object * ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject *, PyObject *, PyObject )’ {aka ‘int ()(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types]
2116 | (initproc)EAPOLCracker_init,/tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2116:5: note: (near initialization for ‘EAPOLCracker_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces]
2078 | static PyTypeObject EAPOLCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces]
2129 | static PyTypeObject CCMPCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2132:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2132 | "_cpyrit_cpu.CCMPCracker", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2132:5: note: (near initialization for ‘CCMPCracker_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2135:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2135 | (destructor)CCMPCracker_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2135:5: note: (near initialization for ‘CCMPCracker_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2150 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CCMPCracker_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2150 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2159:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2159 | CCMPCracker_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2159:5: note: (near initialization for ‘CCMPCracker_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2167:5: warning: initialization of ‘PyObject * ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object * ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject *, PyObject *, PyObject )’ {aka ‘int ()(struct _object *, struct _object *, struct _object )’} [-Wincompatible-pointer-types]
2167 | (initproc)CCMPCracker_init, /tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2167:5: note: (near initialization for ‘CCMPCracker_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces]
2129 | static PyTypeObject CCMPCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2181:6: error: ‘readbufferproc’ undeclared here (not in a function); did you mean ‘getbufferproc’?
2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer /
| ^~~~~~~~~~~~~~
| getbufferproc
cpyrit/_cpyrit_cpu.c:2181:21: error: expected ‘}’ before ‘CowpattyResult_bf_getreadbuffer’
2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2180:53: note: to match this ‘{’
2180 | static PyBufferProcs CowpattyResults_buffer_procs = {
| ^
cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces]
2198 | static PyTypeObject CowpattyResult_type = {
| ^
cpyrit/_cpyrit_cpu.c:2201:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2201 | "_cpyrit_cpu.CowpattyResult", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2201:5: note: (near initialization for ‘CowpattyResult_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2204:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2204 | (destructor)CowpattyResult_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2204:5: note: (near initialization for ‘CowpattyResult_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2219 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CowpattyResult_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2219 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2227:5: warning: initialization of ‘struct PyMethodDef ’ from incompatible pointer type ‘PyObject * ()(PyObject )’ {aka ‘struct _object * ()(struct _object *)’} [-Wincompatible-pointer-types]
2227 | (iternextfunc)CowpattyResult_iternext, /tp_iternext/
| ^
cpyrit/_cpyrit_cpu.c:2227:5: note: (near initialization for ‘CowpattyResult_type.tp_methods’)
cpyrit/_cpyrit_cpu.c:2228:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2228 | CowpattyResult_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2228:5: note: (near initialization for ‘CowpattyResult_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces]
2198 | static PyTypeObject CowpattyResult_type = {
| ^
cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces]
2250 | static PyTypeObject CowpattyFile_type = {
| ^
cpyrit/_cpyrit_cpu.c:2253:5: warning: initialization of ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
2253 | "_cpyrit_cpu.CowpattyFile", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2253:5: note: (near initialization for ‘CowpattyFile_type.tp_basicsize’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2271 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CowpattyFile_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2271 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2280:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2280 | CowpattyFile_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2280:5: note: (near initialization for ‘CowpattyFile_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces]
2250 | static PyTypeObject CowpattyFile_type = {
| ^
cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces]
2315 | static PyTypeObject PcapDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2318:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2318 | "_cpyrit_cpu.PcapDevice", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2318:5: note: (near initialization for ‘PcapDevice_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2321:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2321 | (destructor)PcapDevice_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2321:5: note: (near initialization for ‘PcapDevice_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2336 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘PcapDevice_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2336 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2345:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2345 | PcapDevice_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2345:5: note: (near initialization for ‘PcapDevice_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2346:5: warning: initialization of ‘struct PyGetSetDef *’ from incompatible pointer type ‘PyMemberDef ’ [-Wincompatible-pointer-types]
2346 | PcapDevice_members, /tp_members/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2346:5: note: (near initialization for ‘PcapDevice_type.tp_getset’)
cpyrit/_cpyrit_cpu.c:2353:5: warning: initialization of ‘PyObject * ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object * ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject *, PyObject *, PyObject )’ {aka ‘int ()(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types]
2353 | (initproc)PcapDevice_init, /tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2353:5: note: (near initialization for ‘PcapDevice_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces]
2315 | static PyTypeObject PcapDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c: In function ‘pathconfig’:
cpyrit/_cpyrit_cpu.c:2401:28: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2401 | PlatformString = PyString_FromString("SSE2");
| ^
cpyrit/_cpyrit_cpu.c:2431:24: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2431 | PlatformString = PyString_FromString("Default");
| ^
cpyrit/_cpyrit_cpu.c: In function ‘init_cpyrit_cpu’:
cpyrit/_cpyrit_cpu.c:2510:30: error: ‘_PyObject_Del’ undeclared (first use in this function); did you mean ‘PyObject_Del’?
2510 | CPUDevice_type.tp_free = _PyObject_Del;
| ^~~~~~~~~~~~~
| PyObject_Del
cpyrit/_cpyrit_cpu.c:2512:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2512 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2520:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2520 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2528:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2528 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2536:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2536 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2546:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2546 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2554:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2554 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2556:9: warning: implicit declaration of function ‘Py_InitModule’ [-Wimplicit-function-declaration]
2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods);
| ^~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2556:7: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’:
cpyrit/_cpyrit_cpu.c:1347:1: warning: control reaches end of non-void function [-Wreturn-type]
1347 | }
| ^
At top level:
cpyrit/_cpyrit_cpu.c:1263:1: warning: ‘CowpattyResult_bf_getsegcount’ defined but not used [-Wunused-function]
1263 | CowpattyResult_bf_getsegcount(CowpattyResult self, Py_ssize_t lenp)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1251:1: warning: ‘CowpattyResult_bf_getreadbuffer’ defined but not used [-Wunused-function]
1251 | CowpattyResult_bf_getreadbuffer(CowpattyResult self, Py_ssize_t segment, void **ptrptr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
The text was updated successfully, but these errors were encountered:
CAN ANYONE HELP ME, I've tried just about everythig. Im new to all this so if you do help please explain it in a simple way.
Like why am I getting this error and how i can fix it. I dont want you to just tell me what to do to fix it, but why its doing it and how i can fix it. That way I can get a better idea of how to fix it, when I get an error in the future. THANKS!
root@thr33sixnine369:~/Pyrit# python setup.py build
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:180:5: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
180 | SHA1_Init(&ctr->ctx_ipad);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:181:5: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
181 | SHA1_Update(&ctr->ctx_ipad, pad, 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:184:5: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
184 | SHA1_Init(&ctr->ctx_opad);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:185:5: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
185 | SHA1_Update(&ctr->ctx_opad, pad, 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:206:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
206 | SHA1_Update(&ctx, (unsigned char)e1_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:207:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
207 | SHA1_Final((unsigned char)e1_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:210:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
210 | SHA1_Update(&ctx, (unsigned char)e1_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:211:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
211 | SHA1_Final((unsigned char)e1_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:217:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
217 | SHA1_Update(&ctx, (unsigned char)e2_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:218:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
218 | SHA1_Final((unsigned char)e2_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:221:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
221 | SHA1_Update(&ctx, (unsigned char)e2_buffer, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX c, const void data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:222:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
222 | SHA1_Final((unsigned char)e2_buffer, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char md, SHA_CTX c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CPUDevice_solve’:
cpyrit/_cpyrit_cpu.c:247:29: warning: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration]
247 | essid = (unsigned char)PyString_AsString(essid_obj);
| ^~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:247:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
247 | essid = (unsigned char)PyString_AsString(essid_obj);
| ^
cpyrit/_cpyrit_cpu.c:248:16: warning: implicit declaration of function ‘PyString_Size’; did you mean ‘PyMapping_Size’? [-Wimplicit-function-declaration]
248 | essidlen = PyString_Size(essid_obj);
| ^~~~~~~~~~~~~
| PyMapping_Size
cpyrit/_cpyrit_cpu.c:274:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
274 | passwd = (unsigned char)PyString_AsString(passwd_obj);
| ^
cpyrit/_cpyrit_cpu.c:301:40: warning: implicit declaration of function ‘PyString_FromStringAndSize’; did you mean ‘PyBytes_FromStringAndSize’? [-Wimplicit-function-declaration]
301 | PyTuple_SetItem(result, i, PyString_FromStringAndSize((char)pmk_buffer[i].e1, 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| PyBytes_FromStringAndSize
cpyrit/_cpyrit_cpu.c:301:40: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
301 | PyTuple_SetItem(result, i, PyString_FromStringAndSize((char)pmk_buffer[i].e1, 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘Cracker_unpack’:
cpyrit/_cpyrit_cpu.c:360:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
360 | t = (unsigned char*)PyString_AsString(pmk_obj);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘EAPOLCracker_dealloc’:
cpyrit/_cpyrit_cpu.c:719:9: error: ‘EAPOLCracker’ has no member named ‘ob_type’
719 | self->ob_type->tp_free((PyObject*)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘EAPOLCracker_solve’:
cpyrit/_cpyrit_cpu.c:746:18: warning: implicit declaration of function ‘PyBuffer_Check’; did you mean ‘PyNumber_Check’? [-Wimplicit-function-declaration]
746 | if (!PyBuffer_Check(pmkbuffer_obj))
| ^~~~~~~~~~~~~~
| PyNumber_Check
cpyrit/_cpyrit_cpu.c:753:36: error: ‘PyBufferProcs’ has no member named ‘bf_getreadbuffer’; did you mean ‘bf_getbuffer’?
753 | buffersize = (pb->bf_getreadbuffer)(pmkbuffer_obj, 0, (void*)&t);
| ^~~~~~~~~~~~~~~~
| bf_getbuffer
cpyrit/_cpyrit_cpu.c: In function ‘CCMPCracker_dealloc’:
cpyrit/_cpyrit_cpu.c:910:9: error: ‘CCMPCracker’ has no member named ‘ob_type’
910 | self->ob_type->tp_free((PyObject*)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_pke2tk_openssl’:
cpyrit/_cpyrit_cpu.c:1023:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1023 | SHA1_Init(&ctx);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:1028:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1028 | SHA1_Update(&ctx, pad, sizeof(pad));
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1030:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1030 | SHA1_Update(&ctx, pke1, 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1033:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1033 | SHA1_Update(&ctx, pke1 + 64, 100 - 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1035:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1035 | SHA1_Final(hash, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1037:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1037 | SHA1_Init(&ctx);
| ^~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:1041:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1041 | SHA1_Update(&ctx, pad, sizeof(pad));
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1044:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1044 | SHA1_Update(&ctx, hash, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1047:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1047 | SHA1_Final(hash, &ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1051:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1051 | SHA1_Update(&ipad_ctx, pke2 + 64, 100 - 64);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1052:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1052 | SHA1_Final(hash, &ipad_ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1053:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1053 | SHA1_Update(&opad_ctx, hash, 20);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:50:27: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1056:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1056 | SHA1_Final(hash, &opad_ctx);
| ^~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:37:
/usr/include/openssl/sha.h:51:27: note: declared here
51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘ccmp_encrypt_openssl’:
cpyrit/_cpyrit_cpu.c:1071:9: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1071 | AES_set_encrypt_key(&tkbuffer[i * 16], 128, &aes_ctx);
| ^~~~~~~~~~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:38:
/usr/include/openssl/aes.h:51:5: note: declared here
51 | int AES_set_encrypt_key(const unsigned char userKey, const int bits,
| ^~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1072:9: warning: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1072 | AES_encrypt(A0, crib, &aes_ctx);
| ^~~~~~~~~~~
In file included from cpyrit/_cpyrit_cpu.c:38:
/usr/include/openssl/aes.h:57:6: note: declared here
57 | void AES_encrypt(const unsigned char in, unsigned char out,
| ^~~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CCMPCracker_solve’:
cpyrit/_cpyrit_cpu.c:1175:36: error: ‘PyBufferProcs’ has no member named ‘bf_getreadbuffer’; did you mean ‘bf_getbuffer’?
1175 | buffersize = (pb->bf_getreadbuffer)(pmkbuffer_obj, 0, (void)&t);
| ^~~~~~~~~~~~~~~~
| bf_getbuffer
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_dealloc’:
cpyrit/_cpyrit_cpu.c:1247:9: error: ‘CowpattyResult’ has no member named ‘ob_type’
1247 | self->ob_type->tp_free((PyObject)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_sq_item’:
cpyrit/_cpyrit_cpu.c:1300:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1300 | PyTuple_SetItem(result, 0, PyString_FromStringAndSize((char)&self->buffer[self->itemcount * 32 + consumed + 1], entrylen - 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1301:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1301 | PyTuple_SetItem(result, 1, PyString_FromStringAndSize((char*)&self->buffer[idx * 32], 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_iternext’:
cpyrit/_cpyrit_cpu.c:1330:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1330 | PyTuple_SetItem(result, 0, PyString_FromStringAndSize((char*)self->current_ptr + 1, entrylen - 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1331:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1331 | PyTuple_SetItem(result, 1, PyString_FromStringAndSize((char*)self->buffer + self->current_idx * 32, 32));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’:
cpyrit/_cpyrit_cpu.c:1346:12: warning: implicit declaration of function ‘PyBuffer_FromObject’; did you mean ‘PyBytes_FromObject’? [-Wimplicit-function-declaration]
1346 | return PyBuffer_FromObject(self, 0, Py_END_OF_BUFFER);
| ^~~~~~~~~~~~~~~~~~~
| PyBytes_FromObject
cpyrit/_cpyrit_cpu.c:1346:41: error: ‘Py_END_OF_BUFFER’ undeclared (first use in this function)
1346 | return PyBuffer_FromObject(self, 0, Py_END_OF_BUFFER);
| ^~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1346:41: note: each undeclared identifier is reported only once for each function it appears in
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyFile_gencowpentries’:
cpyrit/_cpyrit_cpu.c:1401:16: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1401 | passwd = PyString_AsString(passwd_obj);
| ^
cpyrit/_cpyrit_cpu.c:1416:13: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1416 | pmk = PyString_AsString(pmk_obj);
| ^
cpyrit/_cpyrit_cpu.c:1437:12: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1437 | result = PyString_FromStringAndSize((char)cowpbuffer, buffer_offset);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyFile_unpackcowpentries’:
cpyrit/_cpyrit_cpu.c:1523:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1523 | PyTuple_SetItem(result, 1, PyString_FromStringAndSize(string + consumed, stringsize - consumed));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_dealloc’:
cpyrit/_cpyrit_cpu.c:1562:9: error: ‘PcapDevice’ has no member named ‘ob_type’
1562 | self->ob_type->tp_free((PyObject*)self);
| ^~
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_setup’:
cpyrit/_cpyrit_cpu.c:1590:31: warning: implicit declaration of function ‘PyString_FromString’; did you mean ‘PyLong_FromString’? [-Wimplicit-function-declaration]
1590 | self->datalink_name = PyString_FromString(dlink_name);
| ^~~~~~~~~~~~~~~~~~~
| PyLong_FromString
cpyrit/_cpyrit_cpu.c:1590:29: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1590 | self->datalink_name = PyString_FromString(dlink_name);
| ^
cpyrit/_cpyrit_cpu.c:1599:16: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1599 | self->type = PyString_FromString(type);
| ^
cpyrit/_cpyrit_cpu.c:1607:23: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1607 | self->device_name = PyString_FromString(dev);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_read’:
cpyrit/_cpyrit_cpu.c:1711:30: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1711 | pckt_content = PyString_FromStringAndSize((char)bytes, h->caplen);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_send’:
cpyrit/_cpyrit_cpu.c:1776:9: warning: implicit declaration of function ‘PyString_AsStringAndSize’; did you mean ‘PyBytes_AsStringAndSize’? [-Wimplicit-function-declaration]
1776 | if (PyString_AsStringAndSize(pckt_string, &pckt_buffer, &pckt_size))
| ^~~~~~~~~~~~~~~~~~~~~~~~
| PyBytes_AsStringAndSize
cpyrit/_cpyrit_cpu.c: In function ‘cpyrit_grouper’:
cpyrit/_cpyrit_cpu.c:1878:36: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1878 | PyTuple_SetItem(result, i, PyString_FromStringAndSize(&string[i * groupsize], groupsize));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.10/Python.h:91,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/tupleobject.h:33:57: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘int’
33 | FUNC(int) PyTuple_SetItem(PyObject *, Py_ssize_t, PyObject *);
| ^~~~~~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘cpyrit_pyr2halfpack’:
cpyrit/_cpyrit_cpu.c:1939:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1939 | t = (unsigned char*)PyString_AsString(item);
| ^
cpyrit/_cpyrit_cpu.c:1960:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1960 | t = (unsigned char*)PyString_AsString(item);
| ^
cpyrit/_cpyrit_cpu.c:1984:10: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1984 | item = PyString_FromStringAndSize((char)pwbuffer, (int)(pwptr - pwbuffer));
| ^
cpyrit/_cpyrit_cpu.c:1993:10: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1993 | item = PyString_FromStringAndSize((char)pmkbuffer, itemcount32);
| ^
cpyrit/_cpyrit_cpu.c: At top level:
cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces]
2027 | static PyTypeObject CPUDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2030:5: warning: initialization of ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
2030 | "_cpyrit_cpu.CPUDevice", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2030:5: note: (near initialization for ‘CPUDevice_type.tp_basicsize’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2048 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CPUDevice_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2048 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2057:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2057 | CPUDevice_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2057:5: note: (near initialization for ‘CPUDevice_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces]
2027 | static PyTypeObject CPUDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces]
2078 | static PyTypeObject EAPOLCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2081:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2081 | "_cpyrit_cpu.EAPOLCracker", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2081:5: note: (near initialization for ‘EAPOLCracker_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2084:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2084 | (destructor)EAPOLCracker_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2084:5: note: (near initialization for ‘EAPOLCracker_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2099 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘EAPOLCracker_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2099 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2108:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2108 | EAPOLCracker_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2108:5: note: (near initialization for ‘EAPOLCracker_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2116:5: warning: initialization of ‘PyObject * ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object * ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject *, PyObject *, PyObject )’ {aka ‘int ()(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types]
2116 | (initproc)EAPOLCracker_init,/tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2116:5: note: (near initialization for ‘EAPOLCracker_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces]
2078 | static PyTypeObject EAPOLCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces]
2129 | static PyTypeObject CCMPCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2132:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2132 | "_cpyrit_cpu.CCMPCracker", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2132:5: note: (near initialization for ‘CCMPCracker_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2135:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2135 | (destructor)CCMPCracker_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2135:5: note: (near initialization for ‘CCMPCracker_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2150 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CCMPCracker_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2150 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2159:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2159 | CCMPCracker_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2159:5: note: (near initialization for ‘CCMPCracker_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2167:5: warning: initialization of ‘PyObject * ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object * ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject *, PyObject *, PyObject )’ {aka ‘int ()(struct _object *, struct _object *, struct _object )’} [-Wincompatible-pointer-types]
2167 | (initproc)CCMPCracker_init, /tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2167:5: note: (near initialization for ‘CCMPCracker_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces]
2129 | static PyTypeObject CCMPCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2181:6: error: ‘readbufferproc’ undeclared here (not in a function); did you mean ‘getbufferproc’?
2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer /
| ^~~~~~~~~~~~~~
| getbufferproc
cpyrit/_cpyrit_cpu.c:2181:21: error: expected ‘}’ before ‘CowpattyResult_bf_getreadbuffer’
2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2180:53: note: to match this ‘{’
2180 | static PyBufferProcs CowpattyResults_buffer_procs = {
| ^
cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces]
2198 | static PyTypeObject CowpattyResult_type = {
| ^
cpyrit/_cpyrit_cpu.c:2201:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2201 | "_cpyrit_cpu.CowpattyResult", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2201:5: note: (near initialization for ‘CowpattyResult_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2204:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2204 | (destructor)CowpattyResult_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2204:5: note: (near initialization for ‘CowpattyResult_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2219 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CowpattyResult_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2219 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2227:5: warning: initialization of ‘struct PyMethodDef ’ from incompatible pointer type ‘PyObject * ()(PyObject )’ {aka ‘struct _object * ()(struct _object *)’} [-Wincompatible-pointer-types]
2227 | (iternextfunc)CowpattyResult_iternext, /tp_iternext/
| ^
cpyrit/_cpyrit_cpu.c:2227:5: note: (near initialization for ‘CowpattyResult_type.tp_methods’)
cpyrit/_cpyrit_cpu.c:2228:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2228 | CowpattyResult_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2228:5: note: (near initialization for ‘CowpattyResult_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces]
2198 | static PyTypeObject CowpattyResult_type = {
| ^
cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces]
2250 | static PyTypeObject CowpattyFile_type = {
| ^
cpyrit/_cpyrit_cpu.c:2253:5: warning: initialization of ‘long int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
2253 | "_cpyrit_cpu.CowpattyFile", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2253:5: note: (near initialization for ‘CowpattyFile_type.tp_basicsize’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2271 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘CowpattyFile_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2271 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2280:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2280 | CowpattyFile_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2280:5: note: (near initialization for ‘CowpattyFile_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces]
2250 | static PyTypeObject CowpattyFile_type = {
| ^
cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces]
2315 | static PyTypeObject PcapDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2318:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2318 | "_cpyrit_cpu.PcapDevice", /tp_name/
| ^~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2318:5: note: (near initialization for ‘PcapDevice_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2321:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object *)’} makes integer from pointer without a cast [-Wint-conversion]
2321 | (destructor)PcapDevice_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2321:5: note: (near initialization for ‘PcapDevice_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.10/Python.h:74,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.10/object.h:392:29: warning: initialization of ‘const char *’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2336 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
/usr/include/python3.10/object.h:392:29: note: (near initialization for ‘PcapDevice_type.tp_doc’)
392 | #define Py_TPFLAGS_DEFAULT (
| ^
cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2336 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2345:5: warning: initialization of ‘struct PyMemberDef *’ from incompatible pointer type ‘PyMethodDef *’ [-Wincompatible-pointer-types]
2345 | PcapDevice_methods, /tp_methods/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2345:5: note: (near initialization for ‘PcapDevice_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2346:5: warning: initialization of ‘struct PyGetSetDef *’ from incompatible pointer type ‘PyMemberDef ’ [-Wincompatible-pointer-types]
2346 | PcapDevice_members, /tp_members/
| ^~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2346:5: note: (near initialization for ‘PcapDevice_type.tp_getset’)
cpyrit/_cpyrit_cpu.c:2353:5: warning: initialization of ‘PyObject * ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object * ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject *, PyObject *, PyObject )’ {aka ‘int ()(struct _object *, struct _object *, struct _object *)’} [-Wincompatible-pointer-types]
2353 | (initproc)PcapDevice_init, /tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2353:5: note: (near initialization for ‘PcapDevice_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces]
2315 | static PyTypeObject PcapDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c: In function ‘pathconfig’:
cpyrit/_cpyrit_cpu.c:2401:28: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2401 | PlatformString = PyString_FromString("SSE2");
| ^
cpyrit/_cpyrit_cpu.c:2431:24: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2431 | PlatformString = PyString_FromString("Default");
| ^
cpyrit/_cpyrit_cpu.c: In function ‘init_cpyrit_cpu’:
cpyrit/_cpyrit_cpu.c:2510:30: error: ‘_PyObject_Del’ undeclared (first use in this function); did you mean ‘PyObject_Del’?
2510 | CPUDevice_type.tp_free = _PyObject_Del;
| ^~~~~~~~~~~~~
| PyObject_Del
cpyrit/_cpyrit_cpu.c:2512:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2512 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2520:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2520 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2528:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2528 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2536:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2536 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2546:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2546 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2554:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2554 | return;
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2556:9: warning: implicit declaration of function ‘Py_InitModule’ [-Wimplicit-function-declaration]
2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods);
| ^~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:2556:7: warning: assignment to ‘PyObject *’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’:
cpyrit/_cpyrit_cpu.c:1347:1: warning: control reaches end of non-void function [-Wreturn-type]
1347 | }
| ^
At top level:
cpyrit/_cpyrit_cpu.c:1263:1: warning: ‘CowpattyResult_bf_getsegcount’ defined but not used [-Wunused-function]
1263 | CowpattyResult_bf_getsegcount(CowpattyResult self, Py_ssize_t lenp)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cpyrit/_cpyrit_cpu.c:1251:1: warning: ‘CowpattyResult_bf_getreadbuffer’ defined but not used [-Wunused-function]
1251 | CowpattyResult_bf_getreadbuffer(CowpattyResult self, Py_ssize_t segment, void **ptrptr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
The text was updated successfully, but these errors were encountered: