2016-05-18 02:51:34 +08:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
1998-12-21 18:52:47 +08:00
|
|
|
*
|
2018-12-06 20:17:34 +08:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 02:51:34 +08:00
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
1998-12-21 18:52:47 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-05-14 22:56:48 +08:00
|
|
|
#include "internal/cryptlib.h"
|
1999-04-24 06:13:45 +08:00
|
|
|
#include <openssl/asn1.h>
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2006-03-04 21:55:02 +08:00
|
|
|
ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x)
|
2015-01-22 11:40:55 +08:00
|
|
|
{
|
2015-03-14 12:16:42 +08:00
|
|
|
return ASN1_STRING_dup(x);
|
2015-01-22 11:40:55 +08:00
|
|
|
}
|
1999-10-20 09:50:23 +08:00
|
|
|
|
2015-01-22 11:40:55 +08:00
|
|
|
int ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a,
|
|
|
|
const ASN1_OCTET_STRING *b)
|
|
|
|
{
|
2015-03-14 12:16:42 +08:00
|
|
|
return ASN1_STRING_cmp(a, b);
|
2015-01-22 11:40:55 +08:00
|
|
|
}
|
1999-10-20 09:50:23 +08:00
|
|
|
|
2015-01-22 11:40:55 +08:00
|
|
|
int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *x, const unsigned char *d,
|
|
|
|
int len)
|
|
|
|
{
|
2015-03-14 12:16:42 +08:00
|
|
|
return ASN1_STRING_set(x, d, len);
|
2015-01-22 11:40:55 +08:00
|
|
|
}
|