Hi, Am Tue, 27 Mar 2018 18:24:25 +0000 schrieb Sergio NNX <sfhacker@xxxxxxxxxxx>: > > The code comiles just fine > > Unfortunately, it does NOT compile fine on my system (and I guess the > same occurs on several others!) Good, updated the zip file, just tested on Linux here (the local Windows maschine just installs VS for testing), giving the following (correct output file format here): jankoh@kohni-mobil ~/projects/te $ unzip TestCrypt.zip Archive: TestCrypt.zip creating: TestCrypt/ inflating: TestCrypt/CMakeLists.txt inflating: TestCrypt/local.cert inflating: TestCrypt/local.key creating: TestCrypt/src/ inflating: TestCrypt/src/app.cpp creating: TestCrypt/ssl/ inflating: TestCrypt/ssl/test.conf extracting: TestCrypt/testfile.txt jankoh@kohni-mobil ~/projects/te $ ls TestCrypt TestCrypt.zip jankoh@kohni-mobil ~/projects/te $ cd TestCrypt jankoh@kohni-mobil ~/projects/te/TestCrypt $ la insgesamt 16K 0 drwxr-xr-x 4 jankoh users 99 28. Mär 00:25 . 0 drwxr-xr-x 3 jankoh users 42 28. Mär 00:29 .. 4,0K -rw-r--r-- 1 jankoh users 849 23. Mär 19:19 CMakeLists.txt 4,0K -rw-r--r-- 1 jankoh users 1,1K 23. Mär 12:08 local.cert 4,0K -rw-r--r-- 1 jankoh users 1,7K 23. Mär 12:04 local.key 0 drwxr-xr-x 2 jankoh users 20 28. Mär 00:22 src 0 drwxr-xr-x 2 jankoh users 22 23. Mär 12:19 ssl 4,0K -rw-r--r-- 1 jankoh users 27 23. Mär 10:48 testfile.txt jankoh@kohni-mobil ~/projects/te/TestCrypt $ mkdir build jankoh@kohni-mobil ~/projects/te/TestCrypt $ cd build/ jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ cmake .. -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenSSL: /usr/lib/libcrypto.so (found suitable exact version "1.1.0g") -- Configuring done -- Generating done -- Build files have been written to: /home/jankoh/projects/te/TestCrypt/build jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ make /usr/bin/cmake -H/home/jankoh/projects/te/TestCrypt -B/home/jankoh/projects/te/TestCrypt/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/jankoh/projects/te/TestCrypt/build/CMakeFiles /home/jankoh/projects/te/TestCrypt/build/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird betreten make -f CMakeFiles/TestCrypt.dir/build.make CMakeFiles/TestCrypt.dir/depend make[2]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird betreten cd /home/jankoh/projects/te/TestCrypt/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/jankoh/projects/te/TestCrypt /home/jankoh/projects/te/TestCrypt /home/jankoh/projects/te/TestCrypt/build /home/jankoh/projects/te/TestCrypt/build /home/jankoh/projects/te/TestCrypt/build/CMakeFiles/TestCrypt.dir/DependInfo.cmake --color= Scanning dependencies of target TestCrypt make[2]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird verlassen make -f CMakeFiles/TestCrypt.dir/build.make CMakeFiles/TestCrypt.dir/build make[2]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird betreten [ 50%] Building CXX object CMakeFiles/TestCrypt.dir/src/app.cpp.o /usr/bin/c++ -o CMakeFiles/TestCrypt.dir/src/app.cpp.o -c /home/jankoh/projects/te/TestCrypt/src/app.cpp [100%] Linking CXX executable TestCrypt /usr/bin/cmake -E cmake_link_script CMakeFiles/TestCrypt.dir/link.txt --verbose=1 /usr/bin/c++ CMakeFiles/TestCrypt.dir/src/app.cpp.o -o TestCrypt /usr/lib/libcrypto.so make[2]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird verlassen [100%] Built target TestCrypt make[1]: Verzeichnis „/home/jankoh/projects/te/TestCrypt/build“ wird verlassen /usr/bin/cmake -E cmake_progress_start /home/jankoh/projects/te/TestCrypt/build/CMakeFiles 0 jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ cp ../testfile.txt . jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ cp ../local.* . jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ ./TestCrypt jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ openssl smime -decrypt -inform DER -in testfile.crypt -inkey local.key -out testfile.sig jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ openssl smime -verify -inform DER -in testfile.sig -CAfile local.cert Kiss me, I'm a test file. Verification successful jankoh@kohni-mobil ~/projects/te/TestCrypt/build $ I removed that applink-thing, too... Best regards Jan
<<attachment: TestCrypt.zip>>
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users