VirtualBox

忽略:
時間撮記:
2022-3-3 下午07:17:34 (3 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
150325
訊息:

libs/openssl-3.0.1: started applying and adjusting our OpenSSL changes to 3.0.1. bugref:10128

位置:
trunk/src/libs/openssl-3.0.1
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/libs/openssl-3.0.1

    • 屬性 svn:mergeinfo
      •  

        old new  
        1212/vendor/openssl/1.1.1c:131722-131725
        1313/vendor/openssl/1.1.1k:145841-145843
         14/vendor/openssl/3.0.1:150323-150324
         15/vendor/openssl/current:147554-150322
  • trunk/src/libs/openssl-3.0.1/crypto/bio/bss_bio.c

    r91772 r94082  
    11/*
    2  * Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    4  * Licensed under the OpenSSL license (the "License").  You may not use
     4 * Licensed under the Apache License 2.0 (the "License").  You may not use
    55 * this file except in compliance with the License.  You can obtain a copy
    66 * in the file LICENSE in the source distribution or at
     
    3939    BIO_TYPE_BIO,
    4040    "BIO pair",
    41     /* TODO: Convert to new style write function */
    4241    bwrite_conv,
    4342    bio_write,
    44     /* TODO: Convert to new style read function */
    4543    bread_conv,
    4644    bio_read,
     
    287285    if (b->closed) {
    288286        /* we already closed */
    289         BIOerr(BIO_F_BIO_WRITE, BIO_R_BROKEN_PIPE);
     287        ERR_raise(ERR_LIB_BIO, BIO_R_BROKEN_PIPE);
    290288        return -1;
    291289    }
     
    363361    b->request = 0;
    364362    if (b->closed) {
    365         BIOerr(BIO_F_BIO_NWRITE0, BIO_R_BROKEN_PIPE);
     363        ERR_raise(ERR_LIB_BIO, BIO_R_BROKEN_PIPE);
    366364        return -1;
    367365    }
     
    428426    case BIO_C_SET_WRITE_BUF_SIZE:
    429427        if (b->peer) {
    430             BIOerr(BIO_F_BIO_CTRL, BIO_R_IN_USE);
     428            ERR_raise(ERR_LIB_BIO, BIO_R_IN_USE);
    431429            ret = 0;
    432430        } else if (num == 0) {
    433             BIOerr(BIO_F_BIO_CTRL, BIO_R_INVALID_ARGUMENT);
     431            ERR_raise(ERR_LIB_BIO, BIO_R_INVALID_ARGUMENT);
    434432            ret = 0;
    435433        } else {
     
    617615
    618616    if (b1->peer != NULL || b2->peer != NULL) {
    619         BIOerr(BIO_F_BIO_MAKE_PAIR, BIO_R_IN_USE);
     617        ERR_raise(ERR_LIB_BIO, BIO_R_IN_USE);
    620618        return 0;
    621619    }
     
    624622        b1->buf = OPENSSL_malloc(b1->size);
    625623        if (b1->buf == NULL) {
    626             BIOerr(BIO_F_BIO_MAKE_PAIR, ERR_R_MALLOC_FAILURE);
     624            ERR_raise(ERR_LIB_BIO, ERR_R_MALLOC_FAILURE);
    627625            return 0;
    628626        }
     
    634632        b2->buf = OPENSSL_malloc(b2->size);
    635633        if (b2->buf == NULL) {
    636             BIOerr(BIO_F_BIO_MAKE_PAIR, ERR_R_MALLOC_FAILURE);
     634            ERR_raise(ERR_LIB_BIO, ERR_R_MALLOC_FAILURE);
    637635            return 0;
    638636        }
     
    751749
    752750    if (!bio->init) {
    753         BIOerr(BIO_F_BIO_NREAD0, BIO_R_UNINITIALIZED);
     751        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
    754752        return -2;
    755753    }
     
    767765
    768766    if (!bio->init) {
    769         BIOerr(BIO_F_BIO_NREAD, BIO_R_UNINITIALIZED);
     767        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
    770768        return -2;
    771769    }
     
    782780
    783781    if (!bio->init) {
    784         BIOerr(BIO_F_BIO_NWRITE0, BIO_R_UNINITIALIZED);
     782        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
    785783        return -2;
    786784    }
     
    798796
    799797    if (!bio->init) {
    800         BIOerr(BIO_F_BIO_NWRITE, BIO_R_UNINITIALIZED);
     798        ERR_raise(ERR_LIB_BIO, BIO_R_UNINITIALIZED);
    801799        return -2;
    802800    }
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette