| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 |
| 15 | #include <openssl/asn1.h> |
| 16 |
| 17 | #include <openssl/err.h> |
| 18 | #include <openssl/mem.h> |
| 19 |
| 20 | ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x) { |
| 21 | return ASN1_STRING_dup(x); |
| 22 | } |
| 23 |
| 24 | int ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a, |
| 25 | const ASN1_OCTET_STRING *b) { |
| 26 | return ASN1_STRING_cmp(a, b); |
| 27 | } |
| 28 |
| 29 | int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *x, const unsigned char *d, |
| 30 | int len) { |
| 31 | return ASN1_STRING_set(x, d, len); |
| 32 | } |
| 33 |