summaryrefslogtreecommitdiff
path: root/src/_counter.h
diff options
context:
space:
mode:
authorThorsten Behrens <sbehrens@gmx.li>2010-12-28 16:26:52 -0500
committerThorsten Behrens <sbehrens@gmx.li>2010-12-28 16:26:52 -0500
commit295ce314d9f5c750d9569ac75a4f78331fae9992 (patch)
tree943c5f2e5237b3cf0665dd8fed278e4efa518770 /src/_counter.h
parent1873473e13161587b870adadc70c1d625f8bc5cf (diff)
downloadpycrypto-295ce314d9f5c750d9569ac75a4f78331fae9992.tar.gz
Changes to allow pycrpyto to work on Python 3.x as well as 2.1 through 2.7
Diffstat (limited to 'src/_counter.h')
-rw-r--r--src/_counter.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/_counter.h b/src/_counter.h
index faaf63f..47dd494 100644
--- a/src/_counter.h
+++ b/src/_counter.h
@@ -25,12 +25,11 @@
#define PCT__COUNTER_H
#include <stdint.h>
-#include "Python.h"
typedef struct {
PyObject_HEAD
- PyStringObject *prefix; /* Prefix (useful for a nonce) */
- PyStringObject *suffix; /* Suffix (useful for a nonce) */
+ PyBytesObject *prefix; /* Prefix (useful for a nonce) */
+ PyBytesObject *suffix; /* Suffix (useful for a nonce) */
uint8_t *val; /* Buffer for our output string */
uint32_t buf_size; /* Size of the buffer */
uint8_t *p; /* Pointer to the part of the buffer that we're allowed to update */