diff options
-rw-r--r-- | rpkid/ext/POW.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rpkid/ext/POW.c b/rpkid/ext/POW.c index c6c02c82..ecdc16dd 100644 --- a/rpkid/ext/POW.c +++ b/rpkid/ext/POW.c @@ -1139,7 +1139,7 @@ static PyObject * ipaddress_object_to_bytes(ipaddress_object *self) { ENTERING(ipaddress_object_from_bytes); - return PyString_FromStringAndSize(self->address, self->type->length); + return PyString_FromStringAndSize((char *) self->address, self->type->length); } static PyObject * @@ -5143,7 +5143,7 @@ asymmetric_object_calculate_ski(asymmetric_object *self) digest, &digest_length, EVP_sha1(), NULL)) lose_openssl_error("Couldn't calculate SHA-1 digest of public key"); - result = PyString_FromStringAndSize(digest, digest_length); + result = PyString_FromStringAndSize((char *) digest, digest_length); error: X509_PUBKEY_free(pubkey); @@ -5758,8 +5758,6 @@ cms_object_sign(cms_object *self, PyObject *args) return NULL; } -#warning Might want to convert flag bits here to keyword argument booleans - static BIO * cms_object_verify_helper(cms_object *self, PyObject *args, PyObject *kwds) { |