Merge pull request #1003 from urbit/final-app-fixes

improve robustness of :dns and :acme
This commit is contained in:
Joe Bryan 2019-01-16 17:27:41 -05:00 committed by GitHub
commit e19b318635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 3 deletions

View File

@ -494,6 +494,10 @@
::
++ register
^+ this
?. =(~ reg.act)
?: =(~ next-order)
this
(validate-domain:effect 0)
=/ =json [%o (my [['termsOfServiceAgreed' b+&] ~])]
:: XX date in wire?
::
@ -1156,15 +1160,25 @@
this
::
%dbug-account
~& [%private (ring:en:pem:pkcs1 key.act)]
~& [%public (pass:en:pem:pkcs1 key.act)]
~& registered=reg.act
~& [%public (pass:en:pem:pkcs1 key.act)]
~? !=(~ sek.key.act)
[%private (ring:en:pem:pkcs1 key.act)]
this
::
%dbug-certificate
?~ liv ~&(~ this)
~& [%key (ring:en:pem:pkcs8 key.u.liv)]
~& [%cert `wain`cer.u.liv]
~& [%expires exp.u.liv]
~& :- %domains
(join ', ' (turn ~(tap in dom.u.liv) |=(a=turf (join '.' a))))
this
::
%dbug-history
~& [%account-history act.hit]
~& [%config-history fig.hit]
~& [%failed-order-history fal.hit]
this
::
%init

View File

@ -792,7 +792,10 @@
++ do-create
|= [him=ship for=ship try=@ud]
^+ this
=/ tar (~(got by pen.nam) him)
=/ pending (~(get by pen.nam) him)
?~ pending
this
=* tar u.pending
=/ =wire
(http-wire try /create/(scot %p him)/for/(scot %p for))
=/ pre=(unit [id=@ta tar=target])