[#OSSL_SELF_TEST_oncorrupt_byte]
= OSSL&lowbar;SELF&lowbar;TEST&lowbar;oncorrupt&lowbar;byte
:mrdocs:

Optionally corrupt the first byte of `bytes` when the callback requests failure injection&period;

== Synopsis

Declared in `&lt;openssl&sol;self&lowbar;test&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;SELF&lowbar;TEST&lowbar;oncorrupt&lowbar;byte(
    xref:OSSL_SELF_TEST.adoc[OSSL&lowbar;SELF&lowbar;TEST]* st,
    unsigned char* bytes);
----

== Return Value

1 if the first byte was corrupted, or 0 if the buffer was left unchanged&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Self&hyphen;test object whose callback decides whether to corrupt&period;
| *bytes*
| Buffer whose first byte may be altered (phase &quot;Corrupt&quot;)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
