*
* \sa \ref write_all(), RC4(3).
*/
-int sc_send_bin_buffer(struct stream_cipher_context *scc, const char *buf,
+int sc_send_bin_buffer(struct stream_cipher_context *scc, char *buf,
size_t len)
{
int ret;
};
struct stream_cipher *sc_new(const unsigned char *data, int len);
void sc_free(struct stream_cipher *sc);
-int sc_send_bin_buffer(struct stream_cipher_context *scc, const char *buf,
+int sc_send_bin_buffer(struct stream_cipher_context *scc, char *buf,
size_t len);
-int sc_send_buffer(struct stream_cipher_context *scc, const char *buf);
+int sc_send_buffer(struct stream_cipher_context *scc, char *buf);
__printf_2_3 int sc_send_va_buffer(struct stream_cipher_context *scc,
const char *fmt, ...);
int sc_recv_bin_buffer(struct stream_cipher_context *scc, char *buf,
*
* \return The return value of the underyling call to sc_send_bin_buffer().
*/
-int sc_send_buffer(struct stream_cipher_context *scc, const char *buf)
+int sc_send_buffer(struct stream_cipher_context *scc, char *buf)
{
return sc_send_bin_buffer(scc, buf, strlen(buf));
}