Friedel Ziegelmayer
af8d056206
refactor: remove dc-strbuilder
2019-06-08 17:13:25 +02:00
Friedel Ziegelmayer
4e41dbf5ab
refactor: reduce dependencies on libc
2019-06-08 17:13:05 +02:00
Floris Bruynooghe
0bce754adf
Merge pull request #134 from flub/as_str
...
Rename to_str() -> as_str() to match stdlib naming convention
2019-06-08 10:57:24 +02:00
Lars-Magnus Skog
a32a275d73
feat: Add utility to convert OsStr to CString ( #136 )
...
* Add utility to convert OsStr to CString
This is approach seems acceptable in the context of deltachat, it
should work correctly on unix and on Windows requires paths to be
valid utf-8.
* Use failure crate for error types
* Add OsStrExt impl for Path, fix windows and update docs
- Adds an OsStrExt impl for Path directly, a little more convenience.
- Fix the windows code to actually use the right function name. Test
the impl function on unix too since that was the point of having it
implemented in a separate function to begin with.
- Improve the docs, do hyperlinks a bit better.
* Another attempt at learing to type
Having your compiler in the cloud is just painful.
* Do not treat this as a fatal error
When PRs are made from forks the passwords are unavailable. We don't
want CI to fail because of this.
* Implement using the AsRef<OsStr> trait
This means any type with implements this trait will get this
implementation, thus covering both OsStr and Path instead of having
duplicate implementations for those like before.
* fix format
2019-06-08 03:04:30 +02:00
Friedel Ziegelmayer
02e7dc022b
feat: remove compile date
...
It has few use only and the problem to stand in the way of reproducible builds.
2019-06-07 22:41:48 +02:00
Floris Bruynooghe
855c7844b5
Rename to_str() -> as_str() to match stdlib naming convention
...
The function does a cast and does not create a new objects. The
stdlib convention is to use to_*() for functions which return new
objects and as_*() for functions which keep referring to the same data
but using a different type. Follow that convention.
2019-06-07 22:19:39 +02:00
Lars-Magnus Skog
18c0d9f83b
chore: update version to 1.0.0-alpha.0
2019-06-07 13:36:15 +02:00
björn petersen
f5683f1fec
fix: remove unneeded string duplication before passing to the callback
2019-06-07 13:34:00 +02:00
B. Petersen
99682f9569
remove compile date: it has few use only and the problem to stand in the way of reproducible builds
2019-06-06 15:15:38 +02:00
dignifiedquire
dc7d23ec47
fix(x): do not enforce valid utf8 in strndup
...
Closes #112
2019-06-06 13:13:16 +02:00
dignifiedquire
983ccaaccd
feat(examples): refactor repl to use rustyline and safe rust
2019-06-06 13:13:16 +02:00
dignifiedquire
95d4df6027
refactor: reduce dependencies on libc
2019-06-05 00:56:59 +02:00
dignifiedquire
f4b68236fe
refactor(context): simpler info formatting
2019-06-01 17:30:34 +02:00
björn petersen
88519d07ca
fix(mimefactory): fix formatting string for voice message files
...
adapt data-format for sent voice-messages-filename and avoid crash on sending voice messages
Closes #107
2019-05-31 23:13:31 +02:00
dignifiedquire
697b750fae
fix(imap): ignore uid 0 when setting flags
...
Closes #98
2019-05-30 21:00:26 +02:00
dignifiedquire
37cfcae42f
refactor: safe logging macros
2019-05-30 12:24:01 +02:00
dignifiedquire
f607dd3073
chore: remove unused features
2019-05-30 01:39:11 +02:00
dignifiedquire
8154781a0d
refactor: replace assert_rtn with assert macros
2019-05-30 00:34:10 +02:00
Lars-Magnus Skog
3142ff22fd
test: move to dc_param
2019-05-29 23:43:08 +02:00
Lars-Magnus Skog
0ffdaf254f
test: move dc_array tests
2019-05-29 23:43:08 +02:00
Lars-Magnus Skog
51071fb09d
test: move tests for dc_utf8_strlen()
2019-05-29 23:43:08 +02:00
Lars-Magnus Skog
424ada818b
test: move stress tests to dc_strencode and dc_tools
2019-05-29 23:43:08 +02:00
dignifiedquire
cd45a1f37c
refactor: remove libc usage of snprintf and strndup
2019-05-29 22:04:30 +02:00
dignifiedquire
de0503bbab
chore: remove unused imports
2019-05-29 20:31:16 +02:00
dignifiedquire
62e54c7291
refactor: drop libc based directory reading
2019-05-29 20:21:59 +02:00
dignifiedquire
c9c3ac3c23
fix: do not generate ptrs inside map
2019-05-29 19:14:10 +02:00
dignifiedquire
31daa425cf
refactor: remove usage of printf
2019-05-29 19:06:36 +02:00
Friedel Ziegelmayer
fe30950f33
fix: peerstate.addr to c string in dc_handle_degrade_event() ( #103 )
...
fix: peerstate.addr to c string in dc_handle_degrade_event()
2019-05-29 11:29:53 +02:00
Lars-Magnus Skog
34921db88f
fix: peerstate.addr to c string in dc_handle_degrade_event()
2019-05-29 03:09:44 +02:00
dignifiedquire
21341b7a51
refactor: remove sprintf
2019-05-29 02:03:55 +02:00
dignifiedquire
30195a3bfd
fix(job): only move if a mvbox folder is configured
...
Closes #100
2019-05-29 00:30:07 +02:00
dignifiedquire
b296ccf5a5
refactor(sqlite): replace sscanf with parse
2019-05-29 00:06:52 +02:00
dignifiedquire
a53f7c0fca
fix(securejoin): improve locking further
2019-05-29 00:03:46 +02:00
dignifiedquire
db90c5bf4d
fix(securejoin): reduce scope of bob lock
2019-05-28 23:30:16 +02:00
Friedel Ziegelmayer
a674557f07
fix(key): return None when empty binary is loaded ( #96 )
2019-05-28 20:10:09 +02:00
Friedel Ziegelmayer
d033667433
Fix bugs ( #93 )
...
* fix(repl): pass null pointer instead of empty string
* fix(peerstate): ensure load and store to the db works
2019-05-28 17:59:41 +02:00
Friedel Ziegelmayer
0d51c7dd2e
Prepare for android builds ( #88 )
...
* upgrade ci
* fixup
* update ci script
* Update run.sh
* refactor(time): drop libc time functions
* fix(ffi): use i64 instead off time_t
* fix(ci): install croos
* fix: remove unused dc_check_password
* fix(ffi): enable ssl vendoring by default
* chore: remove unused import
* fix(deps): add vendored flag for reqwest
* chore(ci): use cross fork
* fix: handle invalid server configurations
Closes #90
* Disable android from circle ci for now
2019-05-28 17:41:50 +02:00
Friedel Ziegelmayer
2a5d0c64d5
Cleanup imports ( #86 )
...
Cleanup imports
2019-05-27 12:58:45 +02:00
Friedel Ziegelmayer
e383752b67
Filbytes fix ( #85 )
...
* test(sqlite): add some tests for houskeeping methods
* fix(tools): handle faile metadata call
2019-05-27 11:59:25 +02:00
dignifiedquire
2d3eae4e1e
refactor: remove dc prefix from keyring and keyhistory
2019-05-27 09:35:03 +02:00
dignifiedquire
22868abe0e
refactor: rename dc_context to context
2019-05-27 09:32:50 +02:00
dignifiedquire
5237c19f4e
refactor: remove dc prefix from cleaned up modules
2019-05-27 09:21:42 +02:00
Friedel Ziegelmayer
41cecb32c7
refactor: remove dc_hash in favor of HashMap and HashSet
2019-05-27 09:07:24 +02:00
Friedel Ziegelmayer
f0cfcef864
refactor: use reqwest to handle http-get requests
...
Closes #82
2019-05-27 09:06:55 +02:00
dignifiedquire
66d8421a90
refactor: remove dc_hash in favor of HashMap and HashSet
...
Closes #49
2019-05-26 23:01:17 +02:00
Friedel Ziegelmayer
a247e5b143
refactor(oauth): safe oauth2 and remove custom json parser ( #80 )
...
* refactor(oauth): safe oauth2 and remove custom json parser
Closes #46,#53
2019-05-26 22:49:52 +02:00
Friedel Ziegelmayer
94aa314f30
refactor(peerstate): safe implementation of peerstate
2019-05-26 22:33:39 +02:00
dignifiedquire
e9a42a3c56
fix(sqlite): handle non availble stats
2019-05-19 19:40:11 +02:00
dignifiedquire
45385abc4f
refactor(imap): use format! for warnings in deletion
2019-05-19 17:54:35 +02:00
Friedel Ziegelmayer
379fc72094
perf: reduce verification load ( #75 )
...
- assume valid keys in the db
- verify keys on import from headers + disk
- use references in keyring when possible
2019-05-17 10:19:43 +02:00