VirtualBox

Ignore:
Timestamp:
Sep 4, 2024 12:53:14 PM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164683
Message:

openssl-3.1.7: Applied and adjusted our OpenSSL changes to 3.1.7. bugref:10757

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.1.7/crypto/rand/randfile.c

    r105945 r105949  
    11/*
    2  * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    1717#endif
    1818
    19 #include "internal/e_os.h"
    2019#include "internal/cryptlib.h"
    2120
     
    214213         */
    215214        int fd = open(file, O_WRONLY | O_CREAT | O_BINARY, 0600);
    216 
    217         if (fd != -1) {
     215        if (fd != -1)
    218216            out = fdopen(fd, "wb");
    219             if (out == NULL) {
    220                 close(fd);
    221                 ERR_raise_data(ERR_LIB_RAND, RAND_R_CANNOT_OPEN_FILE,
    222                                "Filename=%s", file);
    223                 return -1;
    224             }
    225         }
    226217    }
    227218#endif
Note: See TracChangeset for help on using the changeset viewer.

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