diff options
author | beck <> | 2001-08-01 19:51:17 +0000 |
---|---|---|
committer | beck <> | 2001-08-01 19:51:17 +0000 |
commit | 4b790f68539c49ef91f5e82506c2624900c92106 (patch) | |
tree | d14ff9f79630cb04ad006cd2730646f44f62d786 /src/lib/libcrypto/asn1 | |
parent | edbfd6c7e91e15e92ef0df548474ac76b6dddca0 (diff) | |
download | openbsd-4b790f68539c49ef91f5e82506c2624900c92106.tar.gz openbsd-4b790f68539c49ef91f5e82506c2624900c92106.tar.bz2 openbsd-4b790f68539c49ef91f5e82506c2624900c92106.zip |
merge openssl 0.9.6b-engine
Note that this is a maintenence release, API's appear *not* to have changed.
As such, I have only increased the minor number on these libraries
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/t_x509.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/x_pubkey.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c index 314bdfb1c7..89ae73a6de 100644 --- a/src/lib/libcrypto/asn1/t_x509.c +++ b/src/lib/libcrypto/asn1/t_x509.c | |||
@@ -349,6 +349,8 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase) | |||
349 | ll=80-2-obase; | 349 | ll=80-2-obase; |
350 | 350 | ||
351 | s=X509_NAME_oneline(name,buf,256); | 351 | s=X509_NAME_oneline(name,buf,256); |
352 | if (!*s) | ||
353 | return 1; | ||
352 | s++; /* skip the first slash */ | 354 | s++; /* skip the first slash */ |
353 | 355 | ||
354 | l=ll; | 356 | l=ll; |
diff --git a/src/lib/libcrypto/asn1/x_pubkey.c b/src/lib/libcrypto/asn1/x_pubkey.c index b2e2a51477..4397a404b5 100644 --- a/src/lib/libcrypto/asn1/x_pubkey.c +++ b/src/lib/libcrypto/asn1/x_pubkey.c | |||
@@ -234,7 +234,7 @@ EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key) | |||
234 | a=key->algor; | 234 | a=key->algor; |
235 | if (ret->type == EVP_PKEY_DSA) | 235 | if (ret->type == EVP_PKEY_DSA) |
236 | { | 236 | { |
237 | if (a->parameter->type == V_ASN1_SEQUENCE) | 237 | if (a->parameter && (a->parameter->type == V_ASN1_SEQUENCE)) |
238 | { | 238 | { |
239 | ret->pkey.dsa->write_params=0; | 239 | ret->pkey.dsa->write_params=0; |
240 | p=a->parameter->value.sequence->data; | 240 | p=a->parameter->value.sequence->data; |