Skip to content

Commit

Permalink
Use fuzzy search for PHP 7.2 on OpenBSD.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d2bb7efbc201666c0e1fe455abc8c69bcf4d782d
  • Loading branch information
levlam committed Jun 12, 2020
1 parent f6ef851 commit 7ec6c79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.html
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
pre_text.push('Note that following calls to <code>pkg</code> needs to be run as <code>root</code>.');
}
if (os_openbsd) {
pre_text.push('Note that following instruction is for OpenBSD 6.4 and default KSH shell.');
pre_text.push('Note that following instruction is for OpenBSD 6.7 and default KSH shell.');
}
if (os_netbsd) {
pre_text.push('Note that following instruction is for NetBSD 8.0 and default SH shell.');
Expand Down Expand Up @@ -648,7 +648,7 @@
if (target === 'JNI') {
packages += ' jdk';
}
commands.push('pkg_add ' + packages);
commands.push('pkg_add -z ' + packages);
if (!use_root) {
commands.push('exit');
}
Expand Down
3 changes: 2 additions & 1 deletion tdutils/td/utils/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "td/utils/port/thread_local.h"
#include "td/utils/Random.h"
#include "td/utils/ScopeGuard.h"
#include "td/utils/SharedSlice.h"
#include "td/utils/StackAllocator.h"
#include "td/utils/StringBuilder.h"

Expand Down Expand Up @@ -405,7 +406,7 @@ class AesCtrState::Impl {
static constexpr size_t N = 32;
SecureString counter{AES_BLOCK_SIZE * N};
SecureString encrypted_counter{AES_BLOCK_SIZE * N};
td::Slice current;
Slice current;

void inc(uint8 *ptr) {
for (int j = 15; j >= 0; j--) {
Expand Down
2 changes: 1 addition & 1 deletion tdutils/test/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ TEST(Crypto, Aes) {
CHECK(decrypted != encrypted);
CHECK(td::crc32(encrypted) == 178892237);
}
#endif

TEST(Crypto, AesCtrState) {
td::vector<td::uint32> answers1{0u, 1141589763u, 596296607u, 3673001485u, 2302125528u,
Expand Down Expand Up @@ -88,6 +87,7 @@ TEST(Crypto, AesCtrState) {
i++;
}
}
#endif

TEST(Crypto, Sha256State) {
for (auto length : {0, 1, 31, 32, 33, 9999, 10000, 10001, 999999, 1000001}) {
Expand Down

0 comments on commit 7ec6c79

Please sign in to comment.