1 // Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
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 
ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING * x)20 ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x) {
21   return ASN1_STRING_dup(x);
22 }
23 
ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING * a,const ASN1_OCTET_STRING * b)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 
ASN1_OCTET_STRING_set(ASN1_OCTET_STRING * x,const unsigned char * d,int len)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