Dirkjan Ochtman
ef25041cce
Use inline modules for intermediate layer
...
(Skip `connection` since it is dissolved in #29.)
2021-12-02 21:09:25 +08:00
Dirkjan Ochtman
9f41f4263e
Use country type from celes
2021-12-02 21:01:44 +08:00
Dirkjan Ochtman
609c327a95
Rename EppClientConnection to RegistryConfig
...
This type represents configuration to build a connection for a
particular registry, so this seems like a better name.
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
ac50679071
Hoist client and registry modules up to top level
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
b9efd46170
Inline trivial single-use function
...
Also avoids allocating an extra copy of the host String.
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
d1cf43af46
Move client certificate setup into epp_connect()
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
7ff8547840
Inline extraction of certificate chain & private key
...
Since both are keying off of the `tls_files` fields, it seems
to make sense to handle both together.
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
8839eb4a11
Keep struct definitions and impl blocks together
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
cbd9fd84aa
Improve error handling in client certificate handling
...
Yield errors instead of panicking. Avoid unnecessary allocations/cloning.
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
af7911cbc3
Inline single-use function
...
Reuse Vec buffer allocation for String return value.
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
d8bcf690a4
Return error instead of panicking on unexpected EOF
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
48ec1e03ce
Initialize buffer upfront to avoid unnecessary copies
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
59151df029
Use Vec instead of BytesMut
...
There doesn't seem to be any particular advantage to using BytesMut here.
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
f30015ad06
Inline trivial single-use function
2021-12-02 19:18:22 +08:00
Dirkjan Ochtman
0ca42405b9
Stop splitting stream in halves
...
I'm not sure why this was done, but it doesn't seem to provide any
value in the current setup.
2021-12-02 19:18:22 +08:00
Nicholas Rempel
c32c19ce98
Rename EppHello and EppGreeting
2021-12-02 15:48:37 +08:00
Nicholas Rempel
3978c426da
Rename transact_new to transact
2021-12-02 15:48:37 +08:00
Nicholas Rempel
9e1d11f9f3
Migrate rgp extension to new API
2021-12-02 15:48:37 +08:00
Nicholas Rempel
31fc61f4b0
Migrate commands to new API
2021-12-02 15:48:37 +08:00
Nicholas Rempel
aa54c14972
Rename EmptyTag to NoExtension
2021-12-02 15:48:37 +08:00
Nicholas Rempel
80c0040cd9
Add EppRequest trait with related transact_new method
2021-12-02 15:48:37 +08:00
Nicholas Rempel
8de5984e38
Refactor Logout into logout.rs
2021-11-30 21:24:39 +08:00
Nicholas Rempel
2745e2b1ca
Refactor Login into login.rs
2021-11-30 21:24:39 +08:00
Nicholas Rempel
76f2ca5b16
Refactor Hello/Greeting into hello.rs
2021-11-30 21:24:39 +08:00
Nicholas Rempel
5a480317e5
Refactor xml into root and disperse const values to relevant modules
2021-11-27 22:24:00 +08:00
Nicholas Rempel
8babf770c6
Refactor request and response into root
2021-11-27 22:24:00 +08:00
Nicholas Rempel
fce6c7a2eb
Refactor object::data into common module
2021-11-27 22:24:00 +08:00
Nicholas Rempel
8bf0283b7e
Refactor message poll models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
dd102fa2cf
Refactor message ack models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
388f153763
Refactor host info models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
b8f9eb1f8f
Refactor host info models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
fc21db3cac
Refactor host delete models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
63c5aae4a9
Refactor host create models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
fa032804a6
Refactor host check models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
18097c14f0
Refactor contact update models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
d7199c5ddb
Refactor contact info models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
f163d35a45
Refactor contact delete models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
feedd6046f
Refactor contact create models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
964f3a7376
Refactor contact check models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
dc90f91b8f
Refactor rgp request models
2021-11-27 22:24:00 +08:00
Nicholas Rempel
c198a7345b
Refactor rgp report models
2021-11-27 22:24:00 +08:00
Nick Rempel
3f3502fea2
Refactor domain update models
2021-11-27 22:24:00 +08:00
Nick Rempel
c5dfdd85b6
Refactor domain transfer models
2021-11-27 22:24:00 +08:00
Nick Rempel
8fe9e8bbeb
Refactor domain renew models
2021-11-27 22:24:00 +08:00
Nick Rempel
41cafe5acc
Refactor domain info models
2021-11-27 22:24:00 +08:00
Nick Rempel
e5f5ba0695
Refactor domain delete models
2021-11-27 22:24:00 +08:00
Nick Rempel
341e06dc14
Refactor domain create models
2021-11-27 22:24:00 +08:00
Nick Rempel
c082a5e3bf
Refactor domain check models
2021-11-27 22:24:00 +08:00
Dirkjan Ochtman
cca0447fb1
Replace StringValueTrait with From impls
...
This seems more idiomatic since it relies on well-known conversion
traits from the standard library. It is also more concise.
Also apply some other stylistic changes:
* Take &[T] instead of Vec<T> if the Vec cannot be reused
* Elide type annotations for collect() where unnecessary
2021-11-24 02:40:17 +08:00
Ritesh Chitlangi
2ce09077b1
added missing serde aliases for de-ser from valid but non-prefixed xml
2021-11-20 17:58:03 +08:00