diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_lib.c | 11 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/asn1/asn1_lib.c | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c index 383d604e60..5d14a2780f 100644 --- a/src/lib/libcrypto/asn1/asn1_lib.c +++ b/src/lib/libcrypto/asn1/asn1_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1_lib.c,v 1.35 2015/07/27 12:53:56 jsing Exp $ */ | 1 | /* $OpenBSD: asn1_lib.c,v 1.36 2015/07/29 14:53:20 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -464,24 +464,23 @@ asn1_add_error(const unsigned char *address, int offset) | |||
464 | int | 464 | int |
465 | ASN1_STRING_length(const ASN1_STRING *x) | 465 | ASN1_STRING_length(const ASN1_STRING *x) |
466 | { | 466 | { |
467 | return M_ASN1_STRING_length(x); | 467 | return (x->length); |
468 | } | 468 | } |
469 | 469 | ||
470 | void | 470 | void |
471 | ASN1_STRING_length_set(ASN1_STRING *x, int len) | 471 | ASN1_STRING_length_set(ASN1_STRING *x, int len) |
472 | { | 472 | { |
473 | M_ASN1_STRING_length_set(x, len); | 473 | x->length = len; |
474 | return; | ||
475 | } | 474 | } |
476 | 475 | ||
477 | int | 476 | int |
478 | ASN1_STRING_type(ASN1_STRING *x) | 477 | ASN1_STRING_type(ASN1_STRING *x) |
479 | { | 478 | { |
480 | return M_ASN1_STRING_type(x); | 479 | return (x->type); |
481 | } | 480 | } |
482 | 481 | ||
483 | unsigned char * | 482 | unsigned char * |
484 | ASN1_STRING_data(ASN1_STRING *x) | 483 | ASN1_STRING_data(ASN1_STRING *x) |
485 | { | 484 | { |
486 | return M_ASN1_STRING_data(x); | 485 | return (x->data); |
487 | } | 486 | } |
diff --git a/src/lib/libssl/src/crypto/asn1/asn1_lib.c b/src/lib/libssl/src/crypto/asn1/asn1_lib.c index 383d604e60..5d14a2780f 100644 --- a/src/lib/libssl/src/crypto/asn1/asn1_lib.c +++ b/src/lib/libssl/src/crypto/asn1/asn1_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1_lib.c,v 1.35 2015/07/27 12:53:56 jsing Exp $ */ | 1 | /* $OpenBSD: asn1_lib.c,v 1.36 2015/07/29 14:53:20 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -464,24 +464,23 @@ asn1_add_error(const unsigned char *address, int offset) | |||
464 | int | 464 | int |
465 | ASN1_STRING_length(const ASN1_STRING *x) | 465 | ASN1_STRING_length(const ASN1_STRING *x) |
466 | { | 466 | { |
467 | return M_ASN1_STRING_length(x); | 467 | return (x->length); |
468 | } | 468 | } |
469 | 469 | ||
470 | void | 470 | void |
471 | ASN1_STRING_length_set(ASN1_STRING *x, int len) | 471 | ASN1_STRING_length_set(ASN1_STRING *x, int len) |
472 | { | 472 | { |
473 | M_ASN1_STRING_length_set(x, len); | 473 | x->length = len; |
474 | return; | ||
475 | } | 474 | } |
476 | 475 | ||
477 | int | 476 | int |
478 | ASN1_STRING_type(ASN1_STRING *x) | 477 | ASN1_STRING_type(ASN1_STRING *x) |
479 | { | 478 | { |
480 | return M_ASN1_STRING_type(x); | 479 | return (x->type); |
481 | } | 480 | } |
482 | 481 | ||
483 | unsigned char * | 482 | unsigned char * |
484 | ASN1_STRING_data(ASN1_STRING *x) | 483 | ASN1_STRING_data(ASN1_STRING *x) |
485 | { | 484 | { |
486 | return M_ASN1_STRING_data(x); | 485 | return (x->data); |
487 | } | 486 | } |