From 3737d94bf4375b89eb7bdf9c55317ef0b812d178 Mon Sep 17 00:00:00 2001 From: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com> Date: Sun, 12 May 2024 22:52:32 +0000 Subject: [PATCH] Chore: Remove certrificates --- {examples/login => assets}/original.jpg | Bin examples/login/README.md | 9 ++++---- examples/login/certs/cas.pem | 21 ------------------ examples/login/certs/gen.sh | 4 ---- examples/login/certs/main.key | 28 ------------------------ examples/login/certs/srv.crt | 20 ----------------- examples/login/certs/srv.csr | 17 -------------- src/engine_posix.cpp | 4 ++-- src/engine_uring.cpp | 2 +- 9 files changed, 8 insertions(+), 97 deletions(-) rename {examples/login => assets}/original.jpg (100%) delete mode 100644 examples/login/certs/cas.pem delete mode 100644 examples/login/certs/gen.sh delete mode 100644 examples/login/certs/main.key delete mode 100644 examples/login/certs/srv.crt delete mode 100644 examples/login/certs/srv.csr diff --git a/examples/login/original.jpg b/assets/original.jpg similarity index 100% rename from examples/login/original.jpg rename to assets/original.jpg diff --git a/examples/login/README.md b/examples/login/README.md index 40f40e9..88eb6f7 100644 --- a/examples/login/README.md +++ b/examples/login/README.md @@ -31,9 +31,10 @@ You would either run `ucall_example_sum_posix` or `ucall_example_sum_uring`. ```sh sudo apt-get install cmake g++ build-essential -cmake -DCMAKE_BUILD_TYPE=Release -B ./build_release && make -C ./build_release -./build_release/build/bin/ucall_example_sum_posix & -./build_release/build/bin/ucall_example_sum_uring & +cmake -DCMAKE_BUILD_TYPE=Release -B build_release +cmake --build build_release --config Release +build_release/build/bin/ucall_example_sum_posix & +build_release/build/bin/ucall_example_sum_uring & python examples/bench.py "jsonrpc_client.CaseTCP" --progress python examples/bench.py "jsonrpc_client.CaseHTTP" --progress python examples/bench.py "jsonrpc_client.CaseHTTPBatches" --progress @@ -43,7 +44,7 @@ kill %% Want to customize server settings? ```sh -./build_release/build/bin/ucall_example_sum_uring --nic=127.0.0.1 --port=8545 --threads=16 --silent=false +build_release/build/bin/ucall_example_sum_uring --nic=127.0.0.1 --port=8545 --threads=16 --silent=false ``` Want to dispatch more clients and aggregate more accurate statistics? diff --git a/examples/login/certs/cas.pem b/examples/login/certs/cas.pem deleted file mode 100644 index 2513619..0000000 --- a/examples/login/certs/cas.pem +++ /dev/null @@ -1,21 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDazCCAlOgAwIBAgIUNkTMNg4Wf5upbGx85ZeulBYCUuQwDQYJKoZIhvcNAQEL -BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM -GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMzA0MDMxMzQ1MjVaFw0yMzA1 -MDMxMzQ1MjVaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw -HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB -AQUAA4IBDwAwggEKAoIBAQC4gSfAQUeshU4hD85Np/hj1WYeJVhUqvi1NcM4/qpK -WETQN73MrGk+3kUqqy8UhyPkw31dpE68hAGzfhjzpvh/hejRIbcSaw8jz3P70Tl1 -4zRfz8rLSgpXieI1HekSadT4Hat1YmYxoMVFN025qwQjglxJCUp8bicxOBtNHwbo -aTLzdTxnVWqkK2DBCNnnRAfttTxIPuSya8ZeCUv1sjlFD9ObTipJ+kjvuDScLFu4 -dErz1WMEJuXLMduEXZ76t7uqv/Y7jdkSAsArnsOj95iLJqohsrvAeyd0K/UkGp7C -ZccPyqD6qjGgsCnWQsQ99pq4HrzgTkbkR1sL8MvHyZfpAgMBAAGjUzBRMB0GA1Ud -DgQWBBQeFV7OnGedbdUSzJ7vtLu6z8KZZDAfBgNVHSMEGDAWgBQeFV7OnGedbdUS -zJ7vtLu6z8KZZDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCi -sgPyakz5NKjRv4KBChvlUGOenZBcsZSBSDtTPkkqW+H23XJpwKQYhnZoniYLriKu -7PGbaNMY5EdClLlTCz1OWZ4JSqyo3hhgGDFmCM5mLDR2JR2rBNh14GodLR2R83c3 -to7C2jINVGIrkahOyCLSui2CBn50Xk/y/1FWU79o8WbSpBAH0EBk1zUSZxL7TAC1 -m42VHx5+BTG8RkWcC/SoY4FLwV7yqPIJtPDvU2AaaywXzixn1/hkzJ0Myn3y9JJu -KZnFg64LcRz5IJcn8+7dvG9lgBwBKbiANqQuQRy5pNpDSlEcRf1VWOVK+amUaV+y -tlXGCB1p86PprDGXwL5d ------END CERTIFICATE----- diff --git a/examples/login/certs/gen.sh b/examples/login/certs/gen.sh deleted file mode 100644 index 977562b..0000000 --- a/examples/login/certs/gen.sh +++ /dev/null @@ -1,4 +0,0 @@ -openssl genpkey -algorithm RSA -out main.key -pkeyopt rsa_keygen_bits:2048 && -openssl req -new -key main.key -out srv.csr && -openssl x509 -req -days 365 -in srv.csr -signkey main.key -out srv.crt && -openssl req -new -x509 -key main.key -out cas.pem \ No newline at end of file diff --git a/examples/login/certs/main.key b/examples/login/certs/main.key deleted file mode 100644 index 5a91862..0000000 --- a/examples/login/certs/main.key +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC4gSfAQUeshU4h -D85Np/hj1WYeJVhUqvi1NcM4/qpKWETQN73MrGk+3kUqqy8UhyPkw31dpE68hAGz -fhjzpvh/hejRIbcSaw8jz3P70Tl14zRfz8rLSgpXieI1HekSadT4Hat1YmYxoMVF -N025qwQjglxJCUp8bicxOBtNHwboaTLzdTxnVWqkK2DBCNnnRAfttTxIPuSya8Ze -CUv1sjlFD9ObTipJ+kjvuDScLFu4dErz1WMEJuXLMduEXZ76t7uqv/Y7jdkSAsAr -nsOj95iLJqohsrvAeyd0K/UkGp7CZccPyqD6qjGgsCnWQsQ99pq4HrzgTkbkR1sL -8MvHyZfpAgMBAAECggEAFyMnM35cOR/McOv1A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iiJYwq5Kz0iRQcZCvJgiZ74V3xhIuXtBYrHQJRuiLhtCE1Y4ldUFTDuJ -ZHwoPNr/RoP7Paz7KAIoWBVBp+1aOupPkmcdUY61QfqtnI8mJ5O5VSVo5hgdNJEb -8wQdB1kfdX8/uVqsVCD+P2yg ------END PRIVATE KEY----- diff --git a/examples/login/certs/srv.crt b/examples/login/certs/srv.crt deleted file mode 100644 index b668fd0..0000000 --- a/examples/login/certs/srv.crt +++ /dev/null @@ -1,20 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDSzCCAjMCFG9cZkrKAoKUF+KcdWYgNW9JRj80MA0GCSqGSIb3DQEBCwUAMGIx -CzAJBgNVBAYTAkFVMQwwCgYDVQQIDANhc2QxDDAKBgNVBAcMA2FzZDELMAkGA1UE -CgwCYXMxCjAIBgNVBAsMAWQxDDAKBgNVBAMMA2FzZDEQMA4GCSqGSIb3DQEJARYB -YTAeFw0yMzA0MDMxMzQ1MTdaFw0yNDA0MDIxMzQ1MTdaMGIxCzAJBgNVBAYTAkFV -MQwwCgYDVQQIDANhc2QxDDAKBgNVBAcMA2FzZDELMAkGA1UECgwCYXMxCjAIBgNV -BAsMAWQxDDAKBgNVBAMMA2FzZDEQMA4GCSqGSIb3DQEJARYBYTCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBALiBJ8BBR6yFTiEPzk2n+GPVZh4lWFSq+LU1 -wzj+qkpYRNA3vcysaT7eRSqrLxSHI+TDfV2kTryEAbN+GPOm+H+F6NEhtxJrDyPP -c/vROXXjNF/PystKCleJ4jUd6RJp1Pgdq3ViZjGgxUU3TbmrBCOCXEkJSnxuJzE4 -G00fBuhpMvN1PGdVaqQrYMEI2edEB+21PEg+5LJrxl4JS/WyOUUP05tOKkn6SO+4 -NJwsW7h0SvPVYwQm5csx24Rdnvq3u6q/9juN2RICwCuew6P3mIsmqiGyu8B7J3Qr -9SQansJlxw/KoPqqMaCwKdZCxD32mrgevOBORuRHWwvwy8fJl+kCAwEAATANBgkq -hkiG9w0BAQsFAAOCAQEABUPMGhDCjfWEXJFlBbmv+DNrrac3s5SSnIQ8bFgtiW8w -soDk7/42HiL8zBKvx0Ym7Gw9aYSyuCSm5FYj4H5H3DTO+FOB+s4N8hfhX84wJK68 -xEN/dbuXXY0iGIm24cpokW37xjCNuw7UTj9vFzf+uq3ghRWxTxG5e3+5ayVZ2/V7 -cub3EdMKSpgalhv740Jy5wPb+X9DllJE9eO9vQb6cGsADAfpBNfrIsG2onrzeW1f -F4omD3roWJmQ3yyk2OPPJf7WTXGAbZeEClNZw+UeaISPwsf/1JdjzDDs85sDEq01 -uvICmE5ks4WJCXvDupmGAPpOgQMXRLJPQSgHO+4h/w== ------END CERTIFICATE----- diff --git a/examples/login/certs/srv.csr b/examples/login/certs/srv.csr deleted file mode 100644 index a1ada8c..0000000 --- a/examples/login/certs/srv.csr +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIICvDCCAaQCAQAwYjELMAkGA1UEBhMCQVUxDDAKBgNVBAgMA2FzZDEMMAoGA1UE -BwwDYXNkMQswCQYDVQQKDAJhczEKMAgGA1UECwwBZDEMMAoGA1UEAwwDYXNkMRAw -DgYJKoZIhvcNAQkBFgFhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA -uIEnwEFHrIVOIQ/OTaf4Y9VmHiVYVKr4tTXDOP6qSlhE0De9zKxpPt5FKqsvFIcj -5MN9XaROvIQBs34Y86b4f4Xo0SG3EmsPI89z+9E5deM0X8/Ky0oKV4niNR3pEmnU -+B2rdWJmMaDFRTdNuasEI4JcSQlKfG4nMTgbTR8G6Gky83U8Z1VqpCtgwQjZ50QH -7bU8SD7ksmvGXglL9bI5RQ/Tm04qSfpI77g0nCxbuHRK89VjBCblyzHbhF2e+re7 -qr/2O43ZEgLAK57Do/eYiyaqIbK7wHsndCv1JBqewmXHD8qg+qoxoLAp1kLEPfaa -uB684E5G5EdbC/DLx8mX6QIDAQABoBUwEwYJKoZIhvcNAQkHMQYMBDAwOTkwDQYJ -KoZIhvcNAQELBQADggEBAJjTginMRIdd1njaHxgOZ9TD8yxcM/Z5jjaghiyz7b2c -ls0Y8ORW5BDdGWFOoKw9Mnf4VpXk60EbBh9Rpmz7yxKwA+LRtQ2uhfy6XplriIHG -J1bV/uNDbiz34JRquoRtqY8lRAxYq7alPDSngG7dZsURMpiRTuTc+wGRdLgGHh0i -PGxxZziJiJDAF9IMs5fYDmwUAQ8W4zj0nsS+plLgWh0HKYymha7I9KFgIkoVRDsF -gyFf4VhitmLgJ4vxzxW2Qss57ma0QSzxpZfn6Hk9f+vI+m+YA0LIAgol4REm0pPA -SXLiTMV6AHhAnI2ExecAJdINrK3NkwA2wWRoxpEPuPI= ------END CERTIFICATE REQUEST----- diff --git a/src/engine_posix.cpp b/src/engine_posix.cpp index 70a80fb..44360b4 100644 --- a/src/engine_posix.cpp +++ b/src/engine_posix.cpp @@ -1,6 +1,6 @@ /** - * @brief JSON-RPC implementation for TCP/IP stack with POSIX calls. - * @author Ashot Vardanian + * @brief JSON-RPC implementation for TCP/IP stack with POSIX calls. + * @author Ash Vardanian */ #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) diff --git a/src/engine_uring.cpp b/src/engine_uring.cpp index 7650786..6dd0390 100644 --- a/src/engine_uring.cpp +++ b/src/engine_uring.cpp @@ -35,7 +35,7 @@ * - `IORING_SETUP_COOP_TASKRUN` > 5.19. * - `IORING_SETUP_SINGLE_ISSUER` > 6.0. * - * @author Ashot Vardanian + * @author Ash Vardanian * * @see Notable links: * https://man7.org/linux/man-pages/dir_by_project.html#liburing