We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f730c commit 970d576Copy full SHA for 970d576
ext/openssl/ossl.c
@@ -122,7 +122,7 @@ ossl_buf2str(char *buf, int len)
122
}
123
124
void
125
-ossl_bin2hex(unsigned char *in, char *out, size_t inlen)
+ossl_bin2hex(const unsigned char *in, char *out, size_t inlen)
126
{
127
const char *hex = "0123456789abcdef";
128
size_t i;
ext/openssl/ossl.h
@@ -131,7 +131,7 @@ do{\
131
* Convert binary string to hex string. The caller is responsible for
132
* ensuring out has (2 * len) bytes of capacity.
133
*/
134
-void ossl_bin2hex(unsigned char *in, char *out, size_t len);
+void ossl_bin2hex(const unsigned char *in, char *out, size_t len);
135
136
/*
137
* Our default PEM callback
0 commit comments