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/x509 | |
| 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/x509')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_obj.c | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_trs.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_obj.c b/src/lib/libcrypto/x509/x509_obj.c index 6a3ba8eb15..f0271fdfa1 100644 --- a/src/lib/libcrypto/x509/x509_obj.c +++ b/src/lib/libcrypto/x509/x509_obj.c | |||
| @@ -214,6 +214,8 @@ int i; | |||
| 214 | } | 214 | } |
| 215 | else | 215 | else |
| 216 | p=buf; | 216 | p=buf; |
| 217 | if (i == 0) | ||
| 218 | *p = '\0'; | ||
| 217 | return(p); | 219 | return(p); |
| 218 | err: | 220 | err: |
| 219 | X509err(X509_F_X509_NAME_ONELINE,ERR_R_MALLOC_FAILURE); | 221 | X509err(X509_F_X509_NAME_ONELINE,ERR_R_MALLOC_FAILURE); |
diff --git a/src/lib/libcrypto/x509/x509_trs.c b/src/lib/libcrypto/x509/x509_trs.c index a7b1543461..86b3b79dcc 100644 --- a/src/lib/libcrypto/x509/x509_trs.c +++ b/src/lib/libcrypto/x509/x509_trs.c | |||
| @@ -228,7 +228,8 @@ int X509_TRUST_get_trust(X509_TRUST *xp) | |||
| 228 | 228 | ||
| 229 | static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) | 229 | static int trust_1oidany(X509_TRUST *trust, X509 *x, int flags) |
| 230 | { | 230 | { |
| 231 | if(x->aux) return obj_trust(trust->arg1, x, flags); | 231 | if(x->aux && (x->aux->trust || x->aux->reject)) |
| 232 | return obj_trust(trust->arg1, x, flags); | ||
| 232 | /* we don't have any trust settings: for compatibility | 233 | /* we don't have any trust settings: for compatibility |
| 233 | * we return trusted if it is self signed | 234 | * we return trusted if it is self signed |
| 234 | */ | 235 | */ |
