2016-05-17 18:51:34 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
1998-12-21 10:52:47 +00:00
|
|
|
*
|
2016-05-17 18:51:34 +00:00
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* 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 10:52:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-05-14 14:56:48 +00:00
|
|
|
#include "internal/cryptlib.h"
|
1999-04-23 22:13:45 +00:00
|
|
|
#include <openssl/asn1.h>
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2006-03-04 13:55:02 +00:00
|
|
|
ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *x)
|
2015-01-22 03:40:55 +00:00
|
|
|
{
|
2015-03-14 04:16:42 +00:00
|
|
|
return ASN1_STRING_dup(x);
|
2015-01-22 03:40:55 +00:00
|
|
|
}
|
1999-10-20 01:50:23 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
int ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a,
|
|
|
|
const ASN1_OCTET_STRING *b)
|
|
|
|
{
|
2015-03-14 04:16:42 +00:00
|
|
|
return ASN1_STRING_cmp(a, b);
|
2015-01-22 03:40:55 +00:00
|
|
|
}
|
1999-10-20 01:50:23 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *x, const unsigned char *d,
|
|
|
|
int len)
|
|
|
|
{
|
2015-03-14 04:16:42 +00:00
|
|
|
return ASN1_STRING_set(x, d, len);
|
2015-01-22 03:40:55 +00:00
|
|
|
}
|