11cb0ef41Sopenharmony_ci/* 21cb0ef41Sopenharmony_ci * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 31cb0ef41Sopenharmony_ci * 41cb0ef41Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 51cb0ef41Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 61cb0ef41Sopenharmony_ci * in the file LICENSE in the source distribution or at 71cb0ef41Sopenharmony_ci * https://www.openssl.org/source/license.html 81cb0ef41Sopenharmony_ci */ 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci#include <stdio.h> 111cb0ef41Sopenharmony_ci#include "internal/cryptlib.h" 121cb0ef41Sopenharmony_ci#include <openssl/asn1.h> 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ciASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x) 151cb0ef41Sopenharmony_ci{ 161cb0ef41Sopenharmony_ci return ASN1_STRING_dup(x); 171cb0ef41Sopenharmony_ci} 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ciint ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a, 201cb0ef41Sopenharmony_ci const ASN1_OCTET_STRING *b) 211cb0ef41Sopenharmony_ci{ 221cb0ef41Sopenharmony_ci return ASN1_STRING_cmp(a, b); 231cb0ef41Sopenharmony_ci} 241cb0ef41Sopenharmony_ci 251cb0ef41Sopenharmony_ciint ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *x, const unsigned char *d, 261cb0ef41Sopenharmony_ci int len) 271cb0ef41Sopenharmony_ci{ 281cb0ef41Sopenharmony_ci return ASN1_STRING_set(x, d, len); 291cb0ef41Sopenharmony_ci} 30